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:
authorMartin Baulig <martin@novell.com>2006-09-01 20:52:58 +0400
committerMartin Baulig <martin@novell.com>2006-09-01 20:52:58 +0400
commit1d426e95be2d14a80be47e6dfa05231c3559a9cd (patch)
tree2c256c126ceaef841f24d0cc1d6beec60362bfd0 /mcs/tests/gtest-285.cs
parent9d05eecfe8e6340b7be36781beba27ad6eef64a8 (diff)
2006-09-01 Martin Baulig <martin@ximian.com>
* gtest-284.cs: New big test for the generic array interfaces. svn path=/trunk/mcs/; revision=64727
Diffstat (limited to 'mcs/tests/gtest-285.cs')
-rwxr-xr-xmcs/tests/gtest-285.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/gtest-285.cs b/mcs/tests/gtest-285.cs
new file mode 100755
index 00000000000..c32e6e39a84
--- /dev/null
+++ b/mcs/tests/gtest-285.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+
+public class A {
+}
+
+public class B : A {
+}
+
+public class Tests
+{
+ public static void Main ()
+ {
+ IList<A> a = new B [0];
+
+ Console.WriteLine (typeof (IList<A>).IsAssignableFrom (typeof (B[])));
+ }
+}
+