Not sure if this is a regression or a bug fix, but:

-----------------------------------
import std.algorithm;

void main()
{
int foo(int i) { return i; }

int[] arr;
auto x = map!( (int a){return foo(a);} )(arr);
}
-----------------------------------

That worked in 2.052, but fails to compile in 2.053 beta with the message:

test.d(8): Error: delegate std.algorithm.__dgliteral1 cannot access frame of function test.main.__dgliteral1


_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to