solidity/test/libsolidity/smtCheckerTests/types/mapping_unsupported_key_type_1.sol
2019-03-06 11:29:26 +01:00

12 lines
173 B
Solidity

pragma experimental SMTChecker;
contract C
{
mapping (string => uint) map;
function f(string memory s, uint x) public {
map[s] = x;
assert(x == map[s]);
}
}
// ----