* TypeTest.cs: Add tests for #612780.
svn path=/trunk/mcs/; revision=159695
+2010-06-29 Rodrigo Kumpera <rkumpera@novell.com>
+
+ * TypeTest.cs: Add tests for #612780.
+
2010-06-29 Sebastien Pouliot <sebastien@ximian.com>
* AttributeTest.cs: Add test cases for GetHashCode
public int field;
}
+ [Test] // Bug #612780
+ public void CannotMakeDerivedTypesFromTypedByRef ()
+ {
+ try {
+ typeof (System.TypedReference).MakeArrayType ();
+ Assert.Fail ("#1");
+ } catch (TypeLoadException) { }
+
+ try {
+ typeof (System.TypedReference).MakeByRefType ();
+ Assert.Fail ("#2");
+ } catch (TypeLoadException) { }
+
+ try {
+ typeof (System.TypedReference).MakePointerType ();
+ Assert.Fail ("#3");
+ } catch (TypeLoadException) { }
+
+ }
+
#if NET_4_0
interface IGetInterfaceMap<in T>
{