digitalmars.D.bugs - [Issue 18044] New: std.conv.to for implicitly convertible
- d-bugmail puremagic.com (25/25) Dec 07 2017 https://issues.dlang.org/show_bug.cgi?id=18044
https://issues.dlang.org/show_bug.cgi?id=18044 Issue ID: 18044 Summary: std.conv.to for implicitly convertible associative arrays 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); assert(a.to!(const(int)[int]).byPair.equal(a.byPair)); } --
Dec 07 2017