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-01-03 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
errors
/
cs0151.cs
blob
7fc40a5f24e3d3d4d2f799c3661b69aaf28bdd76
1
// CS0151: A switch expression of type `Y' cannot be converted to an integral type, bool, char, string, enum or nullable type
2
// Line: 13
3
4
class
Y
{
5
byte
b
;
6
}
7
8
class
X
{
9
static void
Main
()
10
{
11
Y y
=
new
Y
();
12
13
switch
(
y
){
14
case
0
:
15
break
;
16
case
1
:
17
break
;
18
}
19
}
20
}