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: [email protected]
Reporter: [email protected]
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));
}
--