www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7219] New: valid overrides with type qualifiers rejected


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

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: -------
Jan 04 2012