2009-07-20 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0151.cs
blob7fc40a5f24e3d3d4d2f799c3661b69aaf28bdd76
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
4 class Y {
5 byte b;
8 class X {
9 static void Main ()
11 Y y = new Y ();
13 switch (y){
14 case 0:
15 break;
16 case 1:
17 break;