Bug 18004 – [Home]std.meta: template DerivedToFront(TList...) bug.

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-11-22T00:33:56Z
Last change time
2019-05-26T09:37:52Z
Assigned to
No Owner
Creator
shove

Comments

Comment #0 by shove — 2017-11-22T00:33:56Z
file: std.meta line: 745 template DerivedToFront(TList...) { ... } Incorrect running result, Example code that demonstrates the behavior: import std.meta; @safe unittest { class A { } class B : A { } class C : B { } alias Types2 = AliasSeq!(A, C, C, B, B, C); static assert(is(DerivedToFront!(Types2) == AliasSeq!(C, C, C, B, B, A))); }
Comment #1 by shove — 2017-11-22T00:36:17Z
Phobos version: 2.077.0