[Issue 8823] static if (A || B) != static if (A) else if (B) in some cases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 15 09:28:18 PDT 2012


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


Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dmitry.olsh at gmail.com
         Resolution|                            |INVALID


--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-10-15 09:28:15 PDT ---
Basically:

static if(...)
else static if(...){
}

Note the second 'static' before if.
Fairly common gotcha.

-- 
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