[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / tests / test-591.cs
1 // It's actually C# specification and csc bug
2 // https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=310363
3
4 class C1
5 {
6         static void Foo (string val)
7         {
8                 const object obj = null;
9                 switch (val) {
10                         case (string) obj:
11                                 return;
12                 }
13         }
14 }
15
16 class C2
17 {
18         const object o2 = c2;
19         const string c2 = null;
20         
21         public static void Main ()
22         {
23                 const object o = null;
24                 const string s = (string) o;
25         }
26 }