solidity/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol

5 lines
184 B
Solidity
Raw Normal View History

contract B { function f() view {} }
contract C is B { function f() public {} }
// ----
// TypeError: (54-76): Overriding function changes state mutability from "view" to "nonpayable".