Fix Godot.SourceGenerators for generic classes

Fix invalid C# generated by source generators for generic classes and
add generic classes to the Sample project for testing.
This commit is contained in:
Raul Santos
2021-12-03 18:40:32 +01:00
parent 8c5e58ed74
commit c52f21335c
2 changed files with 30 additions and 5 deletions
@@ -0,0 +1,16 @@
namespace Godot.SourceGenerators.Sample
{
partial class Generic<T> : Godot.Object
{
}
// Generic again but different generic parameters
partial class Generic<T, R> : Godot.Object
{
}
// Generic again but without generic parameters
partial class Generic : Godot.Object
{
}
}