fork download
  1. using System;
  2. public class Test {
  3. public static void Main() {
  4. Func<int, int> f = x => x + 1;
  5. var g = x => x + 1;
  6. }
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(5,5): error CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty