solidity/test/libsolidity/syntaxTests/unimplemented_super_function.sol

10 lines
294 B
Solidity
Raw Normal View History

contract a {
function f() public;
}
contract b is a {
2019-09-16 12:33:43 +00:00
function f() public override { super.f(); }
}
// ----
2019-10-23 20:10:12 +00:00
// TypeError: (0-39): Contract "a" should be marked as abstract.
2019-09-16 12:33:43 +00:00
// TypeError: (93-100): Member "f" not found or not visible after argument-dependent lookup in contract super b.