blob: 52724005c8a54e0e41e8e0feb36228265e50ac0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// CS0136: A local variable named `res' cannot be declared in this scope because it would give a different meaning to `res', which is already used in a `child' scope to denote something else
// Line: 15
class C
{
public void Foo (int i, int v)
{
switch (i) {
case 1:
if (v > 0) {
int res = 1;
}
break;
case 2:
int res = 2;
break;
}
}
}
|