aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol
blob: b15666c0bd8895391f2f8bc54260ebf80895a5c7 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                            
                                            



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