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-06 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs0163.cs
blob
bdf2f9b8a580e8065e19b800f7ab97c1cf92bb21
1
// cs0163.cs: Control cannot fall through from one case label to another
2
// Line: 17
3
4
5
public class
Foo
6
{
7
public static void
Main
()
8
{
9
int
a
=
5
;
10
int
b
=
10
;
11
int
c
;
12
13
switch
(
a
)
14
{
15
case
1
:
c
=
a
+
b
;
16
return
;
17
18
case
2
:
c
=
a
-
b
;
19
return
;
20
21
case
3
:
c
=
a
*
b
;
22
}
23
}
24
}