[Issue 2252] Sequence of super interfaces matters
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jul 19 07:57:46 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=2252
Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |verylonglogin.reg at gmail.com
Hardware|x86 |All
Version|D1 |D2
OS|Linux |All
--- Comment #4 from Denis Shelomovskij <verylonglogin.reg at gmail.com> ---
(In reply to Stewart Gordon from comment #3)
> ISTM the bug is actually that the original code compiles without
> version=PROBLEM, rather than that it fails with.
> [snip]
> "A reimplemented interface must implement all the interface functions, it
> does not inherit them from a super class"
> [snip]
So this code should NOT compile:
---
interface I1 { void f(); }
interface I2: I1 { }
class C1: I1 { void f() { } }
class C2: C1, I2 { } // fails for I1
---
--
More information about the Digitalmars-d-bugs
mailing list