blob: 9973b23ec46f966b95e753dee79c5b6b1894a110 (
plain) (
blame)
1
2
3
4
|
contract B { function f() public {} }
contract C is B { function f() view {} }
// ----
// TypeError: (56-76): Overriding function changes state mutability from "nonpayable" to "view".
|