solidity/test/libsolidity/syntaxTests/unimplemented_super_function_derived.sol
2022-04-01 23:41:18 -05:00

13 lines
374 B
Solidity

abstract contract a {
function f() virtual public;
}
contract b is a {
function f() public virtual override { super.f(); }
}
contract c is a,b {
// No error here.
function f() public override(a, b) { super.f(); }
}
// ----
// TypeError 9582: (118-125='super.f'): Member "f" not found or not visible after argument-dependent lookup in type(contract super b).