repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove useless ip += from MINT_JMP, it is assigned later. (#19217)
[mono-project.git]
/
mcs
/
errors
/
cs0136-4.cs
blob
52724005c8a54e0e41e8e0feb36228265e50ac0e
1
// 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
2
// Line: 15
3
4
class
C
5
{
6
public void
Foo
(
int
i
,
int
v
)
7
{
8
switch
(
i
) {
9
case
1
:
10
if
(
v
>
0
) {
11
int
res
=
1
;
12
}
13
break
;
14
case
2
:
15
int
res
=
2
;
16
break
;
17
}
18
}
19
}