[xbuild] Remove ErrorTest.TestExecute1()
[mono.git] / mcs / errors / cs0136-14.cs
1 // CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `child' scope to denote something else
2 // Line: 15
3 delegate string Fun ();
4
5 class X
6 {
7         static void Main ()
8         {
9                 for (int j = 0; j < 5; j++) {
10                         Fun m = delegate {
11                                 int i = j;
12                                 return "<<" + i + ">>";
13                         };
14
15                         int i = j;
16                 }
17         }
18 }