mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
269 B
Solidity
9 lines
269 B
Solidity
|
contract D {
|
||
|
mapping (uint => uint) a;
|
||
|
function foo() public view {
|
||
|
mapping (uint => int) storage c = a;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (84-119): Type mapping(uint256 => uint256) is not implicitly convertible to expected type mapping(uint256 => int256).
|