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

11 lines
169 B
Solidity

pragma experimental SMTChecker;
contract C
{
mapping (uint => uint) map;
function f(uint x, uint y) public view {
require(x == y);
assert(map[x] == map[y]);
}
}