[Issue 16318] inherit from interface via abstract class
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Thu Aug 11 17:29:17 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=16318
b2.temp at gmx.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com
--- Comment #1 from b2.temp at gmx.com ---
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list