aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol
blob: e58f6b20a0b31cff3c8d22c7d8fb4d81b60dd673 (plain) (blame)
1
2
3
4
contract B { function f() view {} }
contract C is B { function f() public {} }
// ----
// TypeError: (54-76): Overriding function changes state mutability from "view" to "nonpayable".