https://issues.dlang.org/show_bug.cgi?id=2252

Denis Shelomovskij <verylonglogin....@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin....@gmail.com
           Hardware|x86                         |All
            Version|D1                          |D2
                 OS|Linux                       |All

--- Comment #4 from Denis Shelomovskij <verylonglogin....@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
---

--

Reply via email to