August 10, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2274


someanon@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #10 from someanon@yahoo.com  2008-08-10 15:09 -------
line 16: // wrong: t.A:- t.B:+ t.C:- int:-

Why an empty class B{} pass the test?


-- 

November 23, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2274


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |clugdbug@yahoo.com.au
         Resolution|                            |INVALID


--- Comment #11 from Don <clugdbug@yahoo.com.au> 2009-11-23 00:29:07 PST ---
(In reply to comment #10)
> line 16: // wrong: t.A:- t.B:+ t.C:- int:-
> 
> Why an empty class B{} pass the test?

Because it has toString(). Try this code:
---
import std.stdio;
class B {}

void main()
{
   B b = new B;
   writefln(b.toString());
}
---
There's no bug here.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
1 2
Next ›   Last »