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

9 lines
199 B
Solidity

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