D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23211 - is(__traits(parent,...) == module) evaluates to false even if the parent is module
Summary: is(__traits(parent,...) == module) evaluates to false even if the parent is m...
Status: RESOLVED DUPLICATE of issue 23105
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-24 12:51 UTC by Max Samukha
Modified: 2022-06-25 00:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Max Samukha 2022-06-24 12:51:56 UTC
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 Boris Carvajal 2022-06-25 00:31:54 UTC

*** This issue has been marked as a duplicate of issue 23105 ***