[Issue 2274] all static if typeof seriously wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 23 00:29:09 PST 2009


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


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

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


--- Comment #11 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list