2009-12-01 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / class / corlib / System / Type.cs
index bdf03a37b4967fe578485b89434f77986f28cd7c..5e3e0f9ef68b06ce67c23a684151a390badc4413 100644 (file)
@@ -1301,6 +1301,8 @@ namespace System {
                {
                        if (!IsSystemType)
                                throw new NotSupportedException ("Derived classes must provide an implementation.");
+                       if (IsByRef)
+                               throw new TypeLoadException ("Can not call MakeByRefType on a ByRef type");
                        return make_byref_type ();
                }