[Issue 2303] static assert in a template function is not reported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 26 01:44:19 PDT 2008


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


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #2 from bugzilla at digitalmars.com  2008-08-26 03:44 -------
The second, corrected example produces the following when compiled with 2.018,
both with and without the invariant type modifiers:

test.d(13): static assert  "Error!"

which appears to be correct.


-- 



More information about the Digitalmars-d-bugs mailing list