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

9 lines
194 B
Solidity
Raw Normal View History

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