solidity/test/libsolidity/syntaxTests/inheritance/override/remove_view.sol
2022-04-01 23:41:18 -05:00

6 lines
335 B
Solidity

contract B { function f() virtual public view {} }
contract C is B { function f() public {} }
// ----
// TypeError 9456: (69-91='function f() public {}'): Overriding function is missing "override" specifier.
// TypeError 6959: (69-91='function f() public {}'): Overriding function changes state mutability from "view" to "nonpayable".