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

9 lines
269 B
Solidity
Raw Normal View History

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).