|
|
@@ -368,7 +368,8 @@ namespace System.Reflection.Emit {
|
|
|
|
|
|
if (open_blocks.Count <= 0)
|
|
|
throw new NotSupportedException ("Not in an exception block");
|
|
|
-
|
|
|
+ if (exceptionType != null && exceptionType.IsUserType)
|
|
|
+ throw new NotSupportedException ("User defined subclasses of System.Type are not yet supported.");
|
|
|
if (ex_handlers [cur_block].LastClauseType () == ILExceptionBlock.FILTER_START) {
|
|
|
if (exceptionType != null)
|
|
|
throw new ArgumentException ("Do not supply an exception type for filter clause");
|
|
|
@@ -478,7 +479,8 @@ namespace System.Reflection.Emit {
|
|
|
{
|
|
|
if (localType == null)
|
|
|
throw new ArgumentNullException ("localType");
|
|
|
-
|
|
|
+ if (localType.IsUserType)
|
|
|
+ throw new NotSupportedException ("User defined subclasses of System.Type are not yet supported.");
|
|
|
LocalBuilder res = new LocalBuilder (localType, this);
|
|
|
res.is_pinned = pinned;
|
|
|
|