[xbuild] Vbc task - make error column check a little non-specific.
[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         public static void Main ()
19         {
20                 // BUG compatibility for now
21                 //const object o = null;
22                 //const string s = (string) o;
23         }
24 }