[Issue 2274] all static if typeof seriously wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 7 18:42:01 PDT 2008


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


someanon at yahoo.com changed:

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




------- Comment #6 from someanon at yahoo.com  2008-08-07 20:41 -------
sorry I got it wrong: it should be static if (is(typeof((new E()).toString()) :
string)) {..}

Now the code compiles, and runs correctly.

Thanks for the reply.


-- 



More information about the Digitalmars-d-bugs mailing list