[Issue 2154] static if (is(typeof(E.toString()) : string)) in template broken
https://issues.dlang.org/show_bug.cgi?id=2154 Andrei Alexandrescu changed: What|Removed |Added Version|2.014 |D2 --
[Issue 2154] static if (is(typeof(E.toString()) : string)) in template broken
http://d.puremagic.com/issues/show_bug.cgi?id=2154 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #4 from Don 2009-09-04 03:03:43 PDT --- This works now. Not sure when it was fixed, but it was 2.022 or earlier. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2154] static if (is(typeof(E.toString()) : string)) in template broken
http://d.puremagic.com/issues/show_bug.cgi?id=2154 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] Severity|normal |regression Keywords||rejects-valid --- Comment #3 from [EMAIL PROTECTED] 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. --