www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5947] New: Classes derived from templated interfaces do not check for method implementation

reply d-bugmail puremagic.com writes:
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



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
next sibling parent d-bugmail puremagic.com writes:
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-



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: -------
May 07 2011
prev sibling parent d-bugmail puremagic.com writes:
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



*** 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: -------
Jun 10 2011