Thread overview
[Issue 5947] New: Classes derived from templated interfaces do not check for method implementation
May 07, 2011
Robert Clipsham
[Issue 5947] Classes derived from interfaces do not check for method implementation with -o-
May 07, 2011
Robert Clipsham
Jun 10, 2011
yebblies
May 07, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5947

           Summary: Classes derived from templated interfaces do not check
                    for method implementation
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: robert@octarineparrot.com


--- Comment #0 from Robert Clipsham <robert@octarineparrot.com> 2011-05-07 21:24:55 BST ---
The following code:
----
interface I(T)
{
    T foo();
    void bar();
}

class C : I!int
{
}
----
Compiles without error, it should complain that foo and bar are not implemented.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 07, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5947


Robert Clipsham <robert@octarineparrot.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Classes derived from        |Classes derived from
                   |templated interfaces do not |interfaces do not check for
                   |check for method            |method implementation with
                   |implementation              |-o-


--- Comment #1 from Robert Clipsham <robert@octarineparrot.com> 2011-05-07 21:38:51 BST ---
It seems this is only happening when the -o- switch is being used, and happens regardless of whether the interface is templated.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 10, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5947


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


--- Comment #2 from yebblies <yebblies@gmail.com> 2011-06-10 08:50:09 PDT ---
*** This issue has been marked as a duplicate of issue 2643 ***

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