1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

Merge pull request #104279 from L2750558108/pr-fix-nested-in-generic-errors

Fix nested GodotObject class in generic class lead to source generator errors in C#
This commit is contained in:
Rémi Verschelde
2025-03-28 14:32:44 +01:00
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;
}