http://d.puremagic.com/issues/show_bug.cgi?id=7559
--- Comment #2 from [email protected] 2013-03-01 04:43:02 PST --- (In reply to comment #1) > import std.array: array; > import std.algorithm: map; > void main() { > int[] foo; > auto r1 = map!(i => foo[0])([0]); > auto r2 = array(r1); > } > > > Gives: > > temp.d(5): Error: function D main is a nested function and cannot be accessed > from std.array.array!(MapResult!(__lambda2, int[])).array Sorry, that does need -inline. Example moved to Issue 4841. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
