[Issue 7317] New: writeln cannot handle alias this of array type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 19 00:52:33 PST 2012


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

           Summary: writeln cannot handle alias this of array type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2012-01-19 00:52:31 PST ---
class C{
    Object[] x;
    alias x this;
    string toString(){return "foo";}
}
void main(){writeln(new C);} // prints "[]"

-- 
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