[mcs] C#7 out variable declaration
[mono.git] / mcs / errors / cs0151.cs
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 }