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:
authorPaolo Molaro <lupus@oddwiz.org>2002-06-22 10:14:13 +0400
committerPaolo Molaro <lupus@oddwiz.org>2002-06-22 10:14:13 +0400
commitecf8151c07072d8c3892b89e0f9f8c63e5d446e0 (patch)
treec7c4486bcb6b49e52eb404bcf1f766633eba0424 /mcs/tests/test-135.cs
parent007bd31a0c42ecd9631f6a2da14586ab18d39b2b (diff)
Test for bug#26264.
svn path=/trunk/mcs/; revision=5410
Diffstat (limited to 'mcs/tests/test-135.cs')
-rwxr-xr-xmcs/tests/test-135.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/tests/test-135.cs b/mcs/tests/test-135.cs
new file mode 100755
index 00000000000..c7372e1755b
--- /dev/null
+++ b/mcs/tests/test-135.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Reflection;
+// test bug bug#26264
+
+interface IA {
+ void doh();
+}
+interface IB {
+
+ IA Prop {get;}
+}
+class A : IA {
+ public void doh() {}
+}
+class T : IB {
+ IA IB.Prop {
+ get { return new A(); }
+ }
+ public A Prop {
+ get { return new A(); }
+ }
+ static int Main() {
+ PropertyInfo[] p = typeof (T).GetProperties (BindingFlags.Public| BindingFlags.NonPublic|BindingFlags.Instance);
+ if (p == null || p.Length != 1)
+ return 1;
+ return 0;
+ }
+}
+