[Issue 9407] New: Typedef doesn't work with hashes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jan 26 15:36:49 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9407
Summary: Typedef doesn't work with hashes
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-26 15:36:49 PST ---
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)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list