Skip to content

Commit

Permalink
prevent BaseType from returning default (dotnet#66955)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobsaila authored and radekdoulik committed Mar 30, 2022
1 parent 749251f commit fcb382f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override Type BaseType
{
get
{
if (RuntimeAugments.TryGetBaseType(_typeHandle, out RuntimeTypeHandle baseTypeHandle))
if (RuntimeAugments.TryGetBaseType(_typeHandle, out RuntimeTypeHandle baseTypeHandle) && !baseTypeHandle.Equals(default))
{
return GetRuntimeTypeInfo(baseTypeHandle);
}
Expand Down

0 comments on commit fcb382f

Please sign in to comment.