[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs0815-6.cs
1 // CS0815: An implicitly typed local variable declaration cannot be initialized with `void'
2 // Line: 17
3
4 using System;
5 using System.Collections.Generic;
6
7 class A
8 {
9         static void Test (Action a)
10         {
11         }
12
13         public static void Main ()
14         {
15                 Test (() => {
16                         List<string> l = null;
17                         var res = l.ForEach (g => { });
18                 });
19         }
20 }