2010-01-29 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Fri, 29 Jan 2010 17:42:38 +0000 (17:42 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 29 Jan 2010 17:42:38 +0000 (17:42 -0000)
* TypeTest.cs: Add a test for #574819.

svn path=/trunk/mcs/; revision=150560

mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/TypeTest.cs

index bd1ff61cd3cb350e9447b8bd04b10e7a28fa432a..324fdb1fec286fce379d1e7fead7d189054c01fc 100644 (file)
@@ -1,3 +1,7 @@
+2010-01-29  Zoltan Varga  <vargaz@gmail.com>
+
+       * TypeTest.cs: Add a test for #574819.
+
 2010-01-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
 
        * VersionTest.cs: New tests for Parse and TryParse.
index a061fa0b0396406a23d07479d433840822ff56e4..fce466386ba372079be9c4cb9d5ae5e01d6ca97c 100644 (file)
@@ -1562,6 +1562,19 @@ namespace MonoTests.System
                        Assert.AreEqual (2, t2.Length);
                }
 
+               [Test]
+               public void GetInterfacesGenericVarWithConstraints ()
+               {
+                       var a = typeof (TypeTest).GetMethod ("GenericMethod");
+
+                       var p = a.GetParameters ();
+                       var i = p[0].ParameterType.GetElementType ();
+                       i.GetInterfaces ();
+               }
+
+               public static void GenericMethod<T> (T[] arr) where T: IComparable<T> {
+               }
+
                public int AField;
 
                [Test]