diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-07-18 23:20:26 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-07-24 01:30:07 +0800 |
commit | c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b (patch) | |
tree | 48d2d0b7f17ceafd1a7dd4646860324a19fad563 /test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol | |
parent | b909df4573130e020c7f4dfb61c0571ba1bc02ab (diff) | |
download | dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar.gz dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar.bz2 dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar.lz dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar.xz dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.tar.zst dexon-solidity-c622a1e56c0a02b890b45fd15f1fb4cb9d119b3b.zip |
Enforces data location of local mappings to storage.
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol index 27651d63..b15666c0 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/025_comparison_of_mapping_types.sol @@ -1,9 +1,9 @@ contract C { mapping(uint => uint) x; function f() public returns (bool ret) { - mapping(uint => uint) y = x; + mapping(uint => uint) storage y = x; return x == y; } } // ---- -// TypeError: (139-145): Operator == not compatible with types mapping(uint256 => uint256) and mapping(uint256 => uint256) +// TypeError: (147-153): Operator == not compatible with types mapping(uint256 => uint256) and mapping(uint256 => uint256) |