import std.stdio; void main() { auto x = (a,b) { return a+b; }; writeln(x(3,5)); }
Standard input is empty
prog.d(5): Error: identifier 'a' is not defined prog.d(5): Error: a is used as a type prog.d(5): Error: cannot have parameter of type void prog.d(5): Error: identifier 'b' is not defined prog.d(5): Error: b is used as a type prog.d(5): Error: cannot have parameter of type void prog.d(5): Error: cannot have parameter of type void prog.d(5): Error: cannot have parameter of type void prog.d(6): Error: cannot implicitly convert expression (3) of type int to void prog.d(6): Error: cannot implicitly convert expression (5) of type int to void
Standard output is empty