diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-09-01 14:23:11 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-09-01 14:23:11 +0400 |
commit | bb6dd5cdcb36371116ca3da8aa299301138ea715 (patch) | |
tree | 83be76091a887178c79d671719515153115b176b /mcs/tests/test-676.cs | |
parent | 8fcb8dc53587b33e59311215de8001c7b5fde30e (diff) |
New tests.
svn path=/trunk/mcs/; revision=112008
Diffstat (limited to 'mcs/tests/test-676.cs')
-rwxr-xr-x | mcs/tests/test-676.cs | 44 |
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; + } + } +} |