solidity/test/libsolidity/syntaxTests/types/mapping/access_index_omitted.sol
2019-02-14 13:41:33 +01:00

9 lines
160 B
Solidity

contract C {
mapping(uint => uint) m;
function f() public {
m[] = 3;
}
}
// ----
// TypeError: (76-79): Index expression cannot be omitted.