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:
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
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue