import std.stdio; void foo(T)(T x) { x(5, 10); } void main() { foo((a, b) { writeln(a+b); }); }
Standard input is empty
prog.d(7): Error: identifier 'a' is not defined prog.d(7): Error: a is used as a type prog.d(7): Error: cannot have parameter of type void prog.d(7): Error: identifier 'b' is not defined prog.d(7): Error: b is used as a type prog.d(7): Error: cannot have parameter of type void prog.d(7): Error: cannot have parameter of type void prog.d(7): Error: cannot have parameter of type void
Standard output is empty