[Issue 20530] New: is(<...> == module/package) does not work with string mixins
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 23 20:06:50 UTC 2020
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 at puremagic.com
Reporter: moonlightsentinel at 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
--
More information about the Digitalmars-d-bugs
mailing list