solidity/test/libsolidity/syntaxTests/unimplemented_super_function_derived.sol

13 lines
353 B
Solidity
Raw Normal View History

abstract contract a {
2019-11-05 17:25:34 +00:00
function f() virtual public;
}
contract b is a {
2019-11-05 17:25:34 +00:00
function f() public virtual override { super.f(); }
}
contract c is a,b {
// No error here.
2019-09-16 12:33:43 +00:00
function f() public override(a, b) { super.f(); }
}
// ----
2019-11-05 17:25:34 +00:00
// TypeError: (118-125): Member "f" not found or not visible after argument-dependent lookup in contract super b.