[Issue 18146] A case expression of final switch allows to pass wrong enum value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 31 17:52:07 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18146
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ag0aep6g at gmail.com
--- Comment #1 from ag0aep6g at gmail.com ---
Please post a complete, self-contained example, without omissions. And specify
where you think the compiler misbehaves.
As it is, your code doesn't do anything, because the templates are never
instantiated. When I add the instantiations, the code doesn't compile because
of the omissions. When I fill the omissions, it seems to me that the static
assert correctly aborts compilation.
--
More information about the Digitalmars-d-bugs
mailing list