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

9 lines
175 B
Solidity

contract C {
fallback() virtual external {}
}
contract D is C {
fallback() external {}
}
// ----
// TypeError: (66-88): Overriding function is missing "override" specifier.