aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/mappings.sol
blob: eb0ccbfb9ef96864ff8e11f5451e405c3868ffbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    mapping(uint => uint) a;
    function f() view public {
        a;
    }
    function g() view public {
        a[2];
    }
    function h() public {
        a[2] = 3;
    }
}