solidity/test/libsolidity/smtCheckerTests/types/mapping_unsupported_key_type_1.sol

12 lines
173 B
Solidity
Raw Normal View History

2018-11-09 16:06:30 +00:00
pragma experimental SMTChecker;
contract C
{
mapping (string => uint) map;
function f(string memory s, uint x) public {
map[s] = x;
assert(x == map[s]);
}
}
// ----