Bug 11259 – __traits(isSame) fails on the result of __traits(parent) if parent is a package

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-14T08:34:14Z
Last change time
2017-10-16T09:57:22Z
Assigned to
No Owner
Creator
Max Samukha

Comments

Comment #0 by samukha — 2013-10-14T08:34:14Z
import std.traits; static assert(__traits(isSame, std, std)); // ok static assert(__traits(isSame, __traits(parent, std.traits), std)); // fail Error: static assert (__traits(isSame, std, std)) is false
Comment #1 by slavo5150 — 2017-08-23T00:32:29Z
Comment #2 by github-bugzilla — 2017-08-24T19:27:34Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/020c2982cd37a9270d606101dcaef69068566e3a Fix Issue 11259: __traits(isSame) fails on the result of __traits(parent) if parent is a package https://github.com/dlang/dmd/commit/81e0ca2d4be6eb3e475b1c843a33bea2e564efe0 Merge pull request #7095 from JinShil/parent_trait Fix Issue 11259: __traits(isSame) fails on the result of __traits(parent) if parent is a package
Comment #3 by github-bugzilla — 2017-10-16T09:57:22Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/020c2982cd37a9270d606101dcaef69068566e3a Fix Issue 11259: __traits(isSame) fails on the result of __traits(parent) if parent is a package https://github.com/dlang/dmd/commit/81e0ca2d4be6eb3e475b1c843a33bea2e564efe0 Merge pull request #7095 from JinShil/parent_trait