Bug 4395 – Nested map fails

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-06-27T05:09:00Z
Last change time
2010-08-14T18:52:30Z
Assigned to
nobody
Creator
simen.kjaras

Comments

Comment #0 by simen.kjaras — 2010-06-27T05:09:13Z
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
Comment #1 by dsimcha — 2010-08-14T18:52:30Z
This appears to have been fixed, possibly due to fixes for several inner struct and forward reference bugs in the last release.