Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update type kind display string checks for C# 10 compatibility
  • Loading branch information
Meir017 committed Sep 14, 2025
commit 949334f9b46efef4e428a751ef4cd27d78826a93
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ private static string GetTypeKindDisplayString(INamedTypeSymbol symbol)
{
return symbol.TypeKind switch
{
#if ROSLYN_4_2_OR_GREATER
#if CSHARP10_OR_GREATER
TypeKind.Class when symbol.IsRecord => "record",
Comment thread
Meir017 marked this conversation as resolved.
#endif
TypeKind.Class => "class",
#if ROSLYN_4_2_OR_GREATER
#if CSHARP10_OR_GREATER
TypeKind.Struct when symbol.IsRecord => "record struct",
#endif
TypeKind.Struct => "struct",
Expand Down
Loading