solidity/test/libsolidity/syntaxTests/inheritance/fallback_receive/receive_overrides_fallback.sol

9 lines
199 B
Solidity

contract C {
fallback() external {}
}
contract D is C {
receive() override external payable {}
}
// ----
// TypeError 7792: (68-76): Function has override specified but does not override anything.