June 24, 2022
https://issues.dlang.org/show_bug.cgi?id=23211

          Issue ID: 23211
           Summary: is(__traits(parent,...) == module) evaluates to false
                    even if the parent is module
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: maxsamukha@gmail.com

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

--