1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

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
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;
}