solidity/test/libsolidity/syntaxTests/inheritance/override/add_view.sol
2018-05-09 15:07:47 +02:00

5 lines
184 B
Solidity

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