solidity/test/libsolidity/smtCheckerTests/types/mapping_2d_1.sol
2018-12-14 12:21:53 +01:00

15 lines
366 B
Solidity

pragma experimental SMTChecker;
contract C
{
mapping (uint => mapping (uint => uint)) map;
function f(uint x) public {
x = 42;
map[13][14] = 42;
assert(x == map[13][14]);
}
}
// ----
// Warning: (134-145): Assertion checker does not yet implement assignments to multi-dimensional mappings or arrays.
// Warning: (154-178): Assertion violation happens here