December 07, 2017 [Issue 18044] New: std.conv.to for implicitly convertible associative arrays | ||||
---|---|---|---|---|
| ||||
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)); } -- |
Copyright © 1999-2021 by the D Language Foundation