Where the parameter type of nested delegate literals isn't specified, the compiler outputs errors, as with the following code:
void main() {
void delegate(int) foo;
void delegate(int) foo2;
foo = (a) {
foo2 = (b) {
};
};
}
error : undefined identifier __T3, did you mean alias __T1?
error : cannot implicitly convert expression (__lambda4) of type _error_ function(_error_) to void delegate(int)
error : template instance program.main.__lambda2!(int) error instantiating
Comment #1 by github-bugzilla — 2012-02-25T22:07:49Z