www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19560] New: 2.084.0 staticIndexOf behavior change missing

https://issues.dlang.org/show_bug.cgi?id=19560

          Issue ID: 19560
           Summary: 2.084.0 staticIndexOf behavior change missing from
                    changelog
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: briancschott gmail.com

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

--
Jan 08