2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / cs0136-14.cs
blob0c43a20519d6fabb019ee1dc815579707c30afa2
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 ();
5 class X
7 static void Main ()
9 for (int j = 0; j < 5; j++) {
10 Fun m = delegate {
11 int i = j;
12 return "<<" + i + ">>";
15 int i = j;