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: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@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: -------

Reply via email to