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:
authorRaja R Harinath <harinath@hurrynot.org>2004-04-16 15:11:29 +0400
committerRaja R Harinath <harinath@hurrynot.org>2004-04-16 15:11:29 +0400
commit8614d2ee2ac16d09e5990aa674c3341aa4621f8c (patch)
treecc946a09d94a7bd1df7f0a58f7f9ee7ecebeaaf0 /mcs/tests/test-236.cs
parent7e44a6599d89a31a521f804c6519dd35b45a3ce0 (diff)
Test for #56300.
svn path=/trunk/mcs/; revision=25599
Diffstat (limited to 'mcs/tests/test-236.cs')
-rw-r--r--mcs/tests/test-236.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/tests/test-236.cs b/mcs/tests/test-236.cs
new file mode 100644
index 00000000000..b47ed0b5ba1
--- /dev/null
+++ b/mcs/tests/test-236.cs
@@ -0,0 +1,25 @@
+// Bug #56300
+
+using System;
+using System.Collections;
+
+namespace Tests
+{
+ public interface IIndexer { object this[int index] { get; set; } }
+
+ public class Test : IIndexer
+ {
+ object[] InnerList;
+ object IIndexer.this[int index] {
+ get { return InnerList[index]; }
+ set { InnerList[index] = value; }
+ }
+
+ public static void Main() {
+ if (Attribute.GetCustomAttribute(
+ typeof(Test),
+ typeof(System.Reflection.DefaultMemberAttribute)) != null)
+ throw new Exception("Class 'Test' has a DefaultMemberAttribute");
+ }
+ }
+}