View mode: basic / threaded / horizontal-split · Log in · Help
January 26, 2013
[Issue 9407] New: Typedef doesn't work with hashes
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@puremagic.com
       ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@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: -------
January 26, 2013
[Issue 9407] Typedef doesn't work with hashes
http://d.puremagic.com/issues/show_bug.cgi?id=9407



--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-26 15:41:17 PST ---
Possibly a duplicate of Issue 8613.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 05, 2013
[Issue 9407] Typedef doesn't work with hashes
http://d.puremagic.com/issues/show_bug.cgi?id=9407


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

          What    |Removed                     |Added
----------------------------------------------------------------------------
            Status|NEW                         |RESOLVED
        Resolution|                            |DUPLICATE


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-05 08:46:20 PST ---
*** This issue has been marked as a duplicate of issue 8613 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home