diff options
author | jfrijters <jfrijters> | 2015-03-19 12:20:39 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2015-03-19 12:20:39 +0300 |
commit | 99c785ea995964eadb1e76bfb46f018491fcd3cb (patch) | |
tree | a54233beb4e556906f353450d2274ec16b8c2258 | |
parent | a9e96ca9e319f743d910e23c50b60739ca7ed6c5 (diff) |
Bug fix. Handle unloadable type in BSM extra arguments.
-rw-r--r-- | runtime/compiler.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/compiler.cs b/runtime/compiler.cs index 957029f2..13305011 100644 --- a/runtime/compiler.cs +++ b/runtime/compiler.cs @@ -3190,7 +3190,11 @@ sealed class Compiler TypeWrapper wrapper = GetWrapperType(constType, out dummy); wrapper.GetMethodWrapper("valueOf", "(" + constType.SigName + ")" + wrapper.SigName, false).EmitCall(ilgen); } - if (targetType.IsPrimitive) + if (targetType.IsUnloadable) + { + // do nothing + } + else if (targetType.IsPrimitive) { string unbox; TypeWrapper wrapper = GetWrapperType(targetType, out unbox); |