← Back to index
|
Original Bugzilla link
Bug 23211 – is(__traits(parent,...) == module) evaluates to false even if the parent is module
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-06-24T12:51:56Z
Last change time
2022-06-25T00:31:54Z
Assigned to
No Owner
Creator
Max Samukha
Comments
Comment #0
by maxsamukha — 2022-06-24T12:51:56Z
module a; static assert(is(a == module)); // ok alias m = __traits(parent, {}); static assert(is(m == module)); // ok static assert (is(__traits(parent, {}) == module)); // fails. should pass
Comment #1
by boris2.9 — 2022-06-25T00:31:54Z
*** This issue has been marked as a duplicate of issue 23105 ***