New test.
[mono.git] / mcs / errors / cs0136-2.cs
1 // CS0136: A local variable named `j' cannot be declared in this scope because it would give a different meaning to `j', which is already used in a `parent or current' scope to denote something else
2 // Line: 7
3
4 class X {
5         public static void Bar (int j, params int [] args)
6         {
7                 foreach (int j in args)
8                         ;
9         }
10 }