solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol

10 lines
286 B
Solidity
Raw Normal View History

contract C {
mapping(uint => uint) x;
function f() public returns (bool ret) {
mapping(uint => uint) y = x;
return x == y;
}
}
// ----
// TypeError: (139-145): Operator == not compatible with types mapping(uint256 => uint256) and mapping(uint256 => uint256)