New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 11 May 2010 10:29:51 +0000 (10:29 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 11 May 2010 10:29:51 +0000 (10:29 -0000)
svn path=/trunk/mcs/; revision=157108

mcs/tests/gtest-508.cs [new file with mode: 0644]

diff --git a/mcs/tests/gtest-508.cs b/mcs/tests/gtest-508.cs
new file mode 100644 (file)
index 0000000..5d83ae4
--- /dev/null
@@ -0,0 +1,21 @@
+using T = A<int>;
+
+class B : T
+{
+       public B (int i)
+               : base (i)
+       {
+       }
+
+       public static void Main ()
+       {
+               T t = new B (4);
+       }
+}
+
+class A<T> where T : struct
+{
+       protected A(T t)
+       {
+       }
+}