[unit-tests] Fix Makefile.am when Mono is compiled with LLVM
[mono-project.git] / mcs / errors / cs0815-6.cs
blobd524ae6a859413617bea9dc85914c310d7d99627
1 // CS0815: An implicitly typed local variable declaration cannot be initialized with `void'
2 // Line: 17
4 using System;
5 using System.Collections.Generic;
7 class A
9 static void Test (Action a)
13 public static void Main ()
15 Test (() => {
16 List<string> l = null;
17 var res = l.ForEach (g => { });
18 });