fork download
  1. import std.stdio;
  2.  
  3. void main()
  4. {
  5. int x = (a,b) { return a+b; };
  6. }
  7.  
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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(5): Error: cannot implicitly convert expression (__dgliteral1) of type int delegate(void, void) to int
stdout
Standard output is empty