solidity/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol
2019-10-30 17:31:33 +01:00

6 lines
267 B
Solidity

contract B { function f() public view {} }
contract C is B { function f() public {} }
// ----
// TypeError: (61-83): Overriding function is missing 'override' specifier.
// TypeError: (61-83): Overriding function changes state mutability from "view" to "nonpayable".