diff options
author | jfrijters <jfrijters> | 2011-03-10 19:08:44 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-03-10 19:08:44 +0300 |
commit | 77c8c9afb0bfb94c27e905519b8c92baf23d0273 (patch) | |
tree | db26bb79739b6956cf47ae1f9cea95e385bf266b /reflect/Emit | |
parent | d4d84927b8103e4b7d5d2216d782304e9d75ec85 (diff) |
Bug fix. <Module> should not extend object.
Diffstat (limited to 'reflect/Emit')
-rw-r--r-- | reflect/Emit/TypeBuilder.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/reflect/Emit/TypeBuilder.cs b/reflect/Emit/TypeBuilder.cs index 9d518bdb..87ef7d15 100644 --- a/reflect/Emit/TypeBuilder.cs +++ b/reflect/Emit/TypeBuilder.cs @@ -661,10 +661,13 @@ namespace IKVM.Reflection.Emit { this.ModuleBuilder.AddDeclarativeSecurity(token, declarativeSecurity); } - Type baseType = this.BaseType; - if (baseType != null) + if (!IsModulePseudoType) { - extends = this.ModuleBuilder.GetTypeToken(baseType).Token; + Type baseType = this.BaseType; + if (baseType != null) + { + extends = this.ModuleBuilder.GetTypeToken(baseType).Token; + } } if (interfaces != null) { |