[Issue 7219] New: valid overrides with type qualifiers rejected

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 4 09:30:06 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7219

           Summary: valid overrides with type qualifiers rejected
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2012-01-04 09:30:04 PST ---
With DMD 2.057, all three overrides fail:

class A{
    void foo(immutable(int)[] x){}
    immutable(int)[] bar(immutable(int)[] x){return x;}
    immutable(int) qux(immutable(int) y){return y;}
}
class B: A{
    override void foo(const(int)[] x){}
    override inout(int)[] bar(inout(int)[] x){return x;}
    override int qux(int y){return y;}
}

The code should compile.

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


More information about the Digitalmars-d-bugs mailing list