www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18044] New: std.conv.to for implicitly convertible


          Issue ID: 18044
           Summary: std.conv.to for implicitly convertible associative
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

This should pass, but currently matches both the implicit conversion and the
associative array overloads of toImpl

 safe unittest
    import std.algorithm.comparison : equal;
    import std.array : byPair;

    int[int] a;
    assert(a.to!(int[int]) == a);

Dec 07 2017