solidity/test/libsolidity/syntaxTests/types/mapping/assignment_type_mismatch.sol

9 lines
274 B
Solidity

contract D {
mapping (uint => uint) a;
function foo() public view {
mapping (uint => int) storage c = a;
}
}
// ----
// TypeError 9574: (84-119): Type mapping(uint256 => uint256) is not implicitly convertible to expected type mapping(uint256 => int256).