"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / errors / cs0151-4.cs
blob0e45b1a9049d3346f9120c4180a1439f5a86a2de
1 // CS0151: A switch expression of type `S1?' cannot be converted to an integral type, bool, char, string, enum or nullable type
2 // Line: 24
4 using System;
6 struct S1
8 public static implicit operator int? (S1? s)
10 throw new ApplicationException ();
13 public static implicit operator int (S1? s)
15 throw new ApplicationException ();
19 class C
21 public static int Main ()
23 S1? s1 = new S1 ();
24 switch (s1)
26 default:
27 return 1;