solidity/test/libsolidity/syntaxTests/viewPureChecker/mappings.sol

13 lines
193 B
Solidity
Raw Normal View History

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