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-01 14:23:11 +0400
committerMarek Safar <marek.safar@gmail.com>2008-09-01 14:23:11 +0400
commitbb6dd5cdcb36371116ca3da8aa299301138ea715 (patch)
tree83be76091a887178c79d671719515153115b176b /mcs/tests/test-676.cs
parent8fcb8dc53587b33e59311215de8001c7b5fde30e (diff)
New tests.
svn path=/trunk/mcs/; revision=112008
Diffstat (limited to 'mcs/tests/test-676.cs')
-rwxr-xr-xmcs/tests/test-676.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/mcs/tests/test-676.cs b/mcs/tests/test-676.cs
new file mode 100755
index 00000000000..cd3d4b196c3
--- /dev/null
+++ b/mcs/tests/test-676.cs
@@ -0,0 +1,44 @@
+using System;
+
+namespace N
+{
+ class Item
+ {
+ public Item ()
+ {
+ }
+
+ public enum ItemSlot
+ {
+ ItemM1,
+ ItemM2
+ }
+ }
+}
+
+namespace N
+{
+ public class Test
+ {
+ Item this [Test slot]
+ {
+ get { return null; }
+ }
+
+ void Foo (Item.ItemSlot i)
+ {
+ object oo = this [null];
+
+ switch (i)
+ {
+ case Item.ItemSlot.ItemM1:
+ break;
+ }
+ }
+
+ public static int Main ()
+ {
+ return 0;
+ }
+ }
+}