New test.
[mono.git] / mcs / errors / cs0136-2.cs
1 // cs0136-2.cs: 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 `method argument' scope to denote something else
2 // Line: 5
3 class X {
4         public static void Bar (int j, params int [] args)
5         {
6                 foreach (int j in args)
7                         ;
8         }
9 }