[Issue 23272] [REG2.099] CTFE error of typeid comparison ==

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 27 23:19:39 UTC 2022


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

--- Comment #1 from johanengelen at weka.io ---
Workaround is to use `is` instead of `==`.

(`assert (s.caseOfTemplated!(a => typeid(a)) is typeid(string));`)

--


More information about the Digitalmars-d-bugs mailing list