[mcs] Consider method candidates with misplaced named arguments not applicable. Fixes...
[mono.git] / mcs / errors / cs0128-2.cs
1 // CS0128: A local variable named `res' is already defined in this scope
2 // Line: 13
3
4 class C
5 {
6         static void Foo (int arg)
7         {
8                 switch (arg) {
9                         case 1:
10                                 int res = 1;
11                                 break;
12                         case 2:
13                                 int res = 2;
14                                 break;
15                 }
16         }
17 }