Browse Source

Fix #2781: Fix missing nullability annotation on base type

pull/2795/head
Siegfried Pammer 3 years ago
parent
commit
b9f2fc4f96
  1. 2
      ICSharpCode.Decompiler/TypeSystem/Implementation/MetadataTypeDefinition.cs

2
ICSharpCode.Decompiler/TypeSystem/Implementation/MetadataTypeDefinition.cs

@ -323,7 +323,7 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation
EntityHandle baseTypeHandle = td.BaseType; EntityHandle baseTypeHandle = td.BaseType;
if (!baseTypeHandle.IsNil) if (!baseTypeHandle.IsNil)
{ {
baseType = module.ResolveType(baseTypeHandle, context); baseType = module.ResolveType(baseTypeHandle, context, metadata.GetCustomAttributes(this.handle), Nullability.Oblivious);
} }
} }
catch (BadImageFormatException) catch (BadImageFormatException)

Loading…
Cancel
Save