Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
December 27, 2011 [Issue 7168] New: Regression(1.072, 2.057) __traits(allMembers) returns wrong tuple | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7168 Summary: Regression(1.072, 2.057) __traits(allMembers) returns wrong tuple Product: D Version: D1 & D2 Platform: All OS/Version: All Status: NEW Keywords: wrong-code Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: k.hara.pg@gmail.com --- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2011-12-27 01:08:23 PST --- class X { void foo(){} } class Y : X { void bar(){} } enum ObjectMems = ["toString","toHash","opCmp","opEquals","Monitor","factory"]; static assert([__traits(allMembers, X)] == ["foo"]~ObjectMems); // pass static assert([__traits(allMembers, Y)] == ["bar", "foo"]~ObjectMems); // fail static assert([__traits(allMembers, Y)] != ["bar", "foo"]); // fail This bug was introduced by merging pull #437. D2 branch commit: https://github.com/D-Programming-Language/dmd/commit/87682481da9cbbe2715a81edbdc76c0735f644f6 D1 branch commit: https://github.com/D-Programming-Language/dmd/commit/191ddb032a64cf278b6890ebc72b6d0135428d62 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 27, 2011 [Issue 7168] Regression(1.072, 2.057) __traits(allMembers) returns wrong tuple | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=7168 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-12-27 01:20:27 PST --- https://github.com/D-Programming-Language/dmd/pull/584 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 27, 2011 [Issue 7168] Regression(2.057) __traits(allMembers) returns wrong tuple | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=7168 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|D1 & D2 |D2 Summary|Regression(1.072, 2.057) |Regression(2.057) |__traits(allMembers) |__traits(allMembers) |returns wrong tuple |returns wrong tuple --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2011-12-27 07:31:41 PST --- Sorry, D1 does not have __traits. So this is D2 only issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 01, 2012 [Issue 7168] Regression(2.057) __traits(allMembers) returns wrong tuple | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=7168 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2011-12-31 18:09:35 PST --- https://github.com/D-Programming-Language/dmd/commit/afc7cfebdd71b105e9fb78b1023ce706fc7945f5 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation