[Issue 2154] static if (is(typeof(E.toString()) : string)) in template broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 24 04:21:03 PST 2008


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


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
           Severity|normal                      |regression
           Keywords|                            |rejects-valid




------- Comment #3 from smjg at iname.com  2008-11-24 06:21 -------
(In reply to comment #1)
> Not sure if it is a bug or not.
> You are trying to access a non-static method. Try one of these solutions:

It is, because the very design of IsExpression is that semantic analysis errors
never escape it, but instead cause the IsExpression to evaluate to false.


-- 



More information about the Digitalmars-d-bugs mailing list