Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-09-22 20:06:08 +0400
committerMarek Safar <marek.safar@gmail.com>2008-09-22 20:06:08 +0400
commit998009021c7ef75fb43913ae7a9f7d669bdc8f9d (patch)
tree67b1d71c7978129915fa01a4d2f0b5aec49ba801 /mcs/tests/test-591.cs
parent27782d18cf636da744aee3fe9bded4bddec90868 (diff)
New tests.
svn path=/trunk/mcs/; revision=113745
Diffstat (limited to 'mcs/tests/test-591.cs')
-rwxr-xr-xmcs/tests/test-591.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-591.cs b/mcs/tests/test-591.cs
new file mode 100755
index 00000000000..a4dbbc68ede
--- /dev/null
+++ b/mcs/tests/test-591.cs
@@ -0,0 +1,23 @@
+// It's actually C# specification and csc bug
+// https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=310363
+
+class C1
+{
+ static void Foo (string val)
+ {
+ const object obj = null;
+ switch (val) {
+ case (string) obj:
+ return;
+ }
+ }
+}
+
+class C2
+{
+ public static void Main ()
+ {
+ const object o = null;
+ const string s = (string) o;
+ }
+}