solidity/test/libsolidity/syntaxTests/inheritance/fallback_receive/receive_without_override.sol
2019-11-14 11:49:39 +01:00

9 lines
190 B
Solidity

contract C {
receive() virtual external payable {}
}
contract D is C {
receive() external payable {}
}
// ----
// TypeError: (73-102): Overriding function is missing 'override' specifier.