зеркало из https://github.com/mono/ikvm-fork.git
Bug fix. It should be possible to import a function pointer type into a ModuleBuilder.
This commit is contained in:
Родитель
419a31babf
Коммит
5f1df590e9
|
@ -653,7 +653,7 @@ namespace IKVM.Reflection.Emit
|
|||
int token;
|
||||
if (!typeTokens.TryGetValue(type, out token))
|
||||
{
|
||||
if (type.HasElementType || type.IsGenericTypeInstance)
|
||||
if (type.HasElementType || type.IsGenericTypeInstance || type.__IsFunctionPointer)
|
||||
{
|
||||
ByteBuffer spec = new ByteBuffer(5);
|
||||
Signature.WriteTypeSpec(this, spec, type);
|
||||
|
|
Загрузка…
Ссылка в новой задаче