repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0158-5.cs
blob
5ce5f691a9224b13a2cc874c58294ac26d28d44e
1
// CS0158: The label `LBL4' shadows another label by the same name in a contained scope
2
// Line: 17
3
4
using
System
;
5
6
class
A
7
{
8
static int
Test
(
int
i
)
9
{
10
switch
(
i
)
11
{
12
case
1
:
13
Console
.
WriteLine
(
"1"
);
14
if
(
i
>
0
)
15
goto
LBL4
;
16
Console
.
WriteLine
(
"2"
);
17
break
;
18
19
case
3
:
20
Console
.
WriteLine
(
"3"
);
21
LBL4
:
22
Console
.
WriteLine
(
"4"
);
23
return
0
;
24
}
25
LBL4
:
26
Console
.
WriteLine
(
"4"
);
27
return
1
;
28
}
29
}
30