Bug 19560 – 2.084.0 staticIndexOf behavior change missing from changelog
Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-01-08T22:21:08Z
Last change time
2019-12-02T12:51:50Z
Assigned to
No Owner
Creator
briancschott
Comments
Comment #0 by briancschott — 2019-01-08T22:21:08Z
import std.meta;
struct Something(T) { T field; }
pragma(msg, staticIndexOf!(immutable int, AliasSeq!(int)));
pragma(msg, staticIndexOf!(immutable Something!int, AliasSeq!(Something!int)));
With 2.083.0 this would print:
-1
0
With 2.084.0 it prints:
-1
-1
Comment #1 by bugzilla — 2019-12-02T12:51:50Z
I don't think, that we still can do anything about this...