digitalmars.D.bugs - [Issue 20530] New: is(<...> == module/package) does not work with
- d-bugmail puremagic.com (23/23) Jan 23 2020 https://issues.dlang.org/show_bug.cgi?id=20530
https://issues.dlang.org/show_bug.cgi?id=20530 Issue ID: 20530 Summary: is(<...> == module/package) does not work with string mixins Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: moonlightsentinel disroot.org Checking if something is a module/package does not work if the identifier is supplied using a string mixin: module test; static assert(is(test == module)); static assert(is(mixin("test") == module)); // fails import somePackage; static assert(is(somePackage == package)); static assert(is(mixin("somePackage") == package)); // fails --
Jan 23 2020