solidity/test/libsolidity/syntaxTests/viewPureChecker/mappings.sol
2021-04-20 17:38:29 +02:00

14 lines
201 B
Solidity

contract C {
mapping(uint => uint) a;
function f() view public {
a;
}
function g() view public {
a[2];
}
function h() public {
a[2] = 3;
}
}
// ----