C#: Fix warnings caught by new problem-matchers

• Restore MSVC problem matcher for Linux builds
This commit is contained in:
Thaddeus Crews 2024-12-01 12:01:15 -06:00
parent a372214a4a
commit 57d08dbec3
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
7 changed files with 132 additions and 67 deletions

View file

@ -309,7 +309,7 @@ namespace Godot.SourceGenerators
// Enums must be converted to the underlying type before they can be implicitly converted to Variant
if (paramSymbol.Type.TypeKind == TypeKind.Enum)
{
var underlyingType = ((INamedTypeSymbol)paramSymbol.Type).EnumUnderlyingType;
var underlyingType = ((INamedTypeSymbol)paramSymbol.Type).EnumUnderlyingType!;
source.Append($", ({underlyingType.FullQualifiedNameIncludeGlobal()})@{paramSymbol.Name}");
continue;
}