← Back to index
|
Original Bugzilla link
Bug 15920 – std.traits.MemberFunctionsTuple gives a wrong result
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-04-13T08:30:00Z
Last change time
2016-04-28T15:05:52Z
Keywords
pull
Assigned to
nobody
Creator
goldmax3000
Comments
Comment #0
by goldmax3000 — 2016-04-13T08:30:15Z
module start; import std.traits; import std.typetuple; class A { void f(){} void f(int){} } class B : A { override void f(){} override void f(int){} } pragma(msg, staticMap!(fullyQualifiedName, MemberFunctionsTuple!(B,"f"))); prints tuple("start.B.f", "start.A.f")
Comment #1
by simen.kjaras — 2016-04-13T17:46:20Z
MemberFunctionsTuple was unaware that isCovariant(a, b) does not preclude isCovariant(b, a). After a little update, it now knows. Pull:
https://github.com/D-Programming-Language/phobos/pull/4195
Comment #2
by github-bugzilla — 2016-04-28T15:05:51Z
Commit pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/26f3eb9b1f2d3c2574d627e6b5dd6a1db12fe1b6
Fix issue 15920 - std.traits.MemberFunctionsTuple gives a wrong result