aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/modifier_invocation.sol
blob: cf986efe50721d3a26b0be05147919af984e1bfb (plain) (blame)
1
2
3
4
5
6
7
contract c {
    modifier mod1(uint a) { if (msg.sender == address(a)) _; }
    modifier mod2 { if (msg.sender == address(2)) _; }
    function f() public mod1(7) mod2 { }
}
// ----
// Warning: (135-171): Function state mutability can be restricted to view