* TypeTest.cs: Add a test for #574819.
svn path=/trunk/mcs/; revision=150560
+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.
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]