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>2010-08-17 23:34:43 +0400
committerMarek Safar <marek.safar@gmail.com>2010-08-18 16:32:30 +0400
commitf83c6573c03117f225415b19c404c2b726988852 (patch)
tree28d41f55cc782dc1d5e702c04dbcbb15b1922bd6 /mcs/tests/gtest-531.cs
parentd48018f03918b835396fc7b4614e8f324f873621 (diff)
Cannot skip on the first type match for multiple inheritances
Diffstat (limited to 'mcs/tests/gtest-531.cs')
-rw-r--r--mcs/tests/gtest-531.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/mcs/tests/gtest-531.cs b/mcs/tests/gtest-531.cs
new file mode 100644
index 00000000000..3cf23b52455
--- /dev/null
+++ b/mcs/tests/gtest-531.cs
@@ -0,0 +1,43 @@
+class ATop<T> : IA<T>
+{
+ IA<T> list;
+
+ T[] IB<T>.ToArray (T[] t)
+ {
+ return null;
+ }
+
+ void IC.ToArray ()
+ {
+ }
+
+ public void Test ()
+ {
+ list = this;
+ list.ToArray (new T [0]);
+ list.ToArray ();
+ }
+}
+
+interface IA<U> : IC, IB<U>
+{
+}
+
+interface IB<V> : IC
+{
+ V[] ToArray (V[] array);
+}
+
+interface IC
+{
+ void ToArray ();
+}
+
+class M
+{
+ static int Main ()
+ {
+ new ATop<short>().Test ();
+ return 0;
+ }
+}