"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / test-591.cs
blob22f10ac7d205d6d2aaf99691294bbb6e8d5d3e6d
1 // It's actually C# specification and csc bug
2 // https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=310363
4 class C1
6 static void Foo (string val)
8 const object obj = null;
9 switch (val) {
10 case (string) obj:
11 return;
16 class C2
18 const object o2 = c2;
19 const string c2 = null;
21 public static void Main ()
23 const object o = null;
24 const string s = (string) o;