www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3525] New: Override keyword & indirect inheritance of many interfaces

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

           Summary: Override keyword & indirect inheritance of many
                    interfaces
           Product: D
           Version: 2.036
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: tomeksowi gmail.com


--- Comment #0 from Tomasz SowiƄski <tomeksowi gmail.com> 2009-11-19 10:07:52
PST ---
interface IB1 {
    int ta();
}

interface IB2 {
    int inna();
}

interface IA : IB1, IB2 { }

class A : IA {
    override int ta() { return 5; }
    override int inna() { return 1; }
}

It doesn't compile:
Error: function hello.A.inna does not override any function

The workaround is not to use the override keyword.

It may be related to bug 2525.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 19 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3525


yebblies <yebblies gmail.com> changed:

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


--- Comment #1 from yebblies <yebblies gmail.com> 2012-02-20 22:36:40 EST ---
Seems to work with dmd 2.058 and 1.072

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