solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/358_illegal_override_payable.sol
2019-10-30 17:31:33 +01:00

6 lines
273 B
Solidity

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