Bug 18044 – std.conv.to for implicitly convertible associative arrays
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-07T16:01:45Z
Last change time
2017-12-18T22:57:28Z
Assigned to
No Owner
Creator
John Colvin
Comments
Comment #0 by john.loughran.colvin — 2017-12-07T16:01:45Z
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));
}
Comment #1 by john.loughran.colvin — 2017-12-07T16:04:00Z