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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
Your request is not valid because it already works. You forget that an
interface method has to be implemented at least once before being overridden,
otherwise what do you override ? An interface method is not like an abstract
method and the error message couldn't be more accurate.

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
interface Foo
{
    void foo();
}

abstract class Bar: Foo {}

class Baz: Bar
{
    void foo(uint i){}
    void foo(){}
}

void main()
{
    (cast(Foo) new Baz).foo;
}
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

I let you close.

--

Reply via email to