add SafeSerializationEventArgs
[mcs.git] / tests / test-591.cs
blob51508f7299358bc9287e9a297bbe8eb063b97b78
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 public static void Main ()
20 // BUG compatibility for now
21 //const object o = null;
22 //const string s = (string) o;