Bug 9407 – Typedef doesn't work with hashes

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-26T15:36:00Z
Last change time
2013-02-05T08:46:20Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-01-26T15:36:49Z
import std.typecons; void main() { alias Typedef!string String; bool[String] m; String s; auto b = s in m; } D:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\typecons.d(2789): Error: cannot implicitly convert expression (this.Typedef_payload) of type string to Typedef!(string, null)
Comment #1 by andrej.mitrovich — 2013-01-26T15:41:17Z
Possibly a duplicate of Issue 8613.
Comment #2 by andrej.mitrovich — 2013-02-05T08:46:20Z
*** This issue has been marked as a duplicate of issue 8613 ***