aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/memberLookup/msg_value_modifier_view.sol
blob: 49a3139cf81fe440c451b3d9594cdc3e4d8c8d4c (plain) (blame)
1
2
3
4
5
6
contract C {
    modifier costs(uint _amount) { require(msg.value >= _amount); _; }
    function f() costs(1 ether) public view {}
}
// ----
// Warning: (101-115): This modifier uses "msg.value" and thus the function should be payable.