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-07-23 19:19:43 +0400
committerMarek Safar <marek.safar@gmail.com>2008-07-23 19:19:43 +0400
commitd7707ab76a62224dc33eda717a1303d8ef96198e (patch)
treedb439e9f2d0183b05858f66a9a29cb085451e8d9 /mcs/tests/test-659.cs
parentb626cdb003a4a01ebef4e2bc45bb35cc5d3c5faf (diff)
New tests.
svn path=/trunk/mcs/; revision=108559
Diffstat (limited to 'mcs/tests/test-659.cs')
-rwxr-xr-xmcs/tests/test-659.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/mcs/tests/test-659.cs b/mcs/tests/test-659.cs
new file mode 100755
index 00000000000..de18b4f4835
--- /dev/null
+++ b/mcs/tests/test-659.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Runtime.CompilerServices;
+
+interface Iface
+{
+ [IndexerName ("AA")]
+ bool this [int i] { set; }
+}
+
+public class MySubClass : Iface
+{
+ static int Main ()
+ {
+ MySubClass m = new MySubClass ();
+ m [1] = true;
+
+ Iface i = new MySubClass ();
+ i [1] = true;
+ return 0;
+ }
+
+ [IndexerName ("BB")]
+ public bool this [int i] { set { } }
+}