Update NamedTypeTooltip.cs

This commit is contained in:
Matt Parker
2025-10-12 14:26:16 +10:00
parent eac9111c1f
commit 5664fceb29

View File

@@ -55,7 +55,7 @@ public static partial class SymbolInfoComponents
private static void AddInheritedTypes(this RichTextLabel label, INamedTypeSymbol symbol)
{
if (symbol.BaseType is not null && symbol.BaseType.SpecialType != SpecialType.System_Object)
if (symbol.BaseType is not null && symbol.BaseType.SpecialType is not (SpecialType.System_Object or SpecialType.System_Enum))
{
label.AddText(" : ");
label.AddType(symbol.BaseType);