Weird error on nested map
Simen kjaeraas
simen.kjaras at gmail.com
Sun Jun 27 01:11:08 PDT 2010
auto fn1 = ( string s ) {
return s;
};
auto fn2 = ( string s ) {
return map!fn1( [""] );
};
auto idirs = map!fn2( [""] );
The above code gives the following errors:
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
As far as I can see, this has to do with struct rules, but I can't see
how to fix it. Should I file this in bugzilla?
--
Simen
More information about the Digitalmars-d-learn
mailing list