[Issue 2140] static if as final statement with no code causes containing code to be skipped

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 4 03:08:58 PDT 2008


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


torhu at yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |torhu at yahoo.com




------- Comment #2 from torhu at yahoo.com  2008-06-04 05:08 -------
Adding an extra statement like 'int x;' at the top of foo() also fixes it.

This bug is strikingly similiar to issue 1559.  In fact, it behaves exactly the
same, except it's 'static if' instead of 'version'.


-- 



More information about the Digitalmars-d-bugs mailing list