Comment #0 by andrej.mitrovich — 2011-08-02T07:27:56Z
import std.algorithm;
alias reduce!((a, b){ return 1; }) foo;
void main()
{
foo([1, 2, 3]);
}
Error: delegate test.__dgliteral1!(int,int).__dgliteral1 is a nested function and cannot be accessed from reduce
This will work however:
import std.algorithm;
void main()
{
alias reduce!((a, b){ return 1; }) foo;
foo([1, 2, 3]);
}
I can't tell whether this is a bug or something subtle that I don't understand.