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

9 lines
194 B
Solidity
Raw Normal View History

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