Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0136-15.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 `parent or current' scope to denote something else
2 // Line: 10
3 delegate string Fun (int i);
4
5 class X
6 {
7         static void Main ()
8         {
9                 for (int i = 0; i < 5; i++) {
10                         Fun m = delegate (int i) {
11                                 return "<<" + i + ">>";
12                         };
13                 }
14         }
15 }