[Issue 18360] `static assert(false)` ignored / gagged

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 11 10:07:07 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=18360

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
I cannot reproduce this:

// test.d

static assert(false);
import a;

// a.d

class Dsymbol;

Symbol a;

Result:

a.d(3): Error: undefined identifier `Symbol`, did you mean class `Dsymbol`?
test.d(1): Error: static assert:  `false` is false

--


More information about the Digitalmars-d-bugs mailing list