Bug fix. It should be possible to import a function pointer type into a ModuleBuilder.

This commit is contained in:
jfrijters 2012-04-17 13:03:54 +00:00
Родитель 419a31babf
Коммит 5f1df590e9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);