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