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>2007-04-23 17:04:48 +0400
committerMartin Baulig <martin@novell.com>2007-04-23 17:04:48 +0400
commitad8943968c4a09d5ef5cfd1e111bec418b95ecfb (patch)
tree02ce5174bbdc6493f2503be1076914a1dd4a5bab /mcs/tests/gtest-332.cs
parent35566c80c20c0ef1e28ca0199e69cebd254125e0 (diff)
New test for bug #80969.
svn path=/trunk/mcs/; revision=76108
Diffstat (limited to 'mcs/tests/gtest-332.cs')
-rw-r--r--mcs/tests/gtest-332.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/gtest-332.cs b/mcs/tests/gtest-332.cs
new file mode 100644
index 00000000000..4231eaca827
--- /dev/null
+++ b/mcs/tests/gtest-332.cs
@@ -0,0 +1,23 @@
+using System;
+
+class C<T>
+{
+ public Type Test ()
+ {
+ T[,] a = new T[0, 0];
+ return a.GetType ();
+ }
+}
+
+class M
+{
+ public static void Main ()
+ {
+ C<string> c1 = new C<string> ();
+ C<bool> c2 = new C<bool> ();
+ if (c1.Test () != typeof (string[,]))
+ throw new InvalidCastException ();
+ if (c2.Test () != typeof (bool[,]))
+ throw new InvalidCastException ();
+ }
+}