www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6575] New: implementing interface method by overloaded arguments

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6575

           Summary: implementing interface method by overloaded arguments
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: alienballance gmail.com



22:50:09 PDT ---
<code>
interface Interface
{
    void method(Interface);
}
class Class : Interface
{
    void method(Class) {}
}

void main() {}
</code>
<result>Error: class test.Class interface function Interface.method isn't
implemented</result>

It should treat method as implemented, because Class implements Interface
anyways.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 29 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6575


Mariusz GliwiƄski <alienballance gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 30 2011