using System; public class Test { public static void Main() { Func<int, int> f = x => x + 1; var g = x => x + 1; } }
Standard input is empty
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
Standard output is empty