www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4395] New: Nested map fails

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4395

           Summary: Nested map fails
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: simen.kjaras gmail.com


--- Comment #0 from Simen Kjaeraas <simen.kjaras gmail.com> 2010-06-27 05:09:13
PDT ---
auto fn1 = ( string s ) {
        return s;
    };
auto fn2 = ( string s ) {
        return map!fn1( [""] );
    };
auto idirs = map!fn2( [""] );

The above code fails with the following error message:

foo.d(114): Error: struct foo.main.Map!(fn2,string[]).Map inner struct Map
cannot be a field
foo.d(114): Error: struct foo.main.Map!(fn2,string[]).Map inner struct Map
cannot be a field

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 27 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4395


David Simcha <dsimcha yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dsimcha yahoo.com
         Resolution|                            |FIXED


--- Comment #1 from David Simcha <dsimcha yahoo.com> 2010-08-14 18:52:30 PDT ---
This appears to have been fixed, possibly due to fixes for several inner struct
and forward reference bugs in the last release.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 14 2010