* ArrayTest.cs: add test ensuring we do not allow open
generic types in CreateInstance.
svn path=/trunk/mcs/; revision=146823
{
Array.CreateInstance (typeof (void), 42);
}
+
+ class Foo<T> {}
+
+ [Test]
+ [ExpectedException (typeof (NotSupportedException))]
+ public void ArrayCreateInstanceOfOpenGenericType ()
+ {
+ Array.CreateInstance (typeof (Foo<>), 42);
+ }
}
}
+2009-11-24 Jb Evain <jbevain@novell.com>
+
+ * ArrayTest.cs: add test ensuring we do not allow open
+ generic types in CreateInstance.
+
2009-11-24 Jb Evain <jbevain@novell.com>
* ArrayTest.cs: Add test ensuring we do not allow void arrays.