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