solidity/test/libsolidity/syntaxTests/types/mapping/access_index_omitted.sol

9 lines
165 B
Solidity
Raw Normal View History

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