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

Fix nested GodotObject class in generic class lead to source generator errors in C#

This commit is contained in:
2750558108
2025-03-18 00:20:07 +08:00
parent 9e6ee9c5c3
commit 6a56ed8926
5 changed files with 42 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ namespace Godot.SourceGenerators
public static string NameWithTypeParameters(this INamedTypeSymbol symbol)
{
return symbol.IsGenericType ?
return symbol.IsGenericType && symbol.TypeParameters.Length > 0 ?
string.Concat(symbol.Name, "<", string.Join(", ", symbol.TypeParameters), ">") :
symbol.Name;
}