Bug fix. <Module> should not extend object.

This commit is contained in:
jfrijters 2011-03-10 16:08:44 +00:00
Родитель d4d84927b8
Коммит 77c8c9afb0
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -661,11 +661,14 @@ namespace IKVM.Reflection.Emit
{
this.ModuleBuilder.AddDeclarativeSecurity(token, declarativeSecurity);
}
if (!IsModulePseudoType)
{
Type baseType = this.BaseType;
if (baseType != null)
{
extends = this.ModuleBuilder.GetTypeToken(baseType).Token;
}
}
if (interfaces != null)
{
foreach (Type interfaceType in interfaces)