diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2021-12-06 00:04:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 00:04:36 +0100 |
commit | 97034939fec923dcb08016f77e7651baf29e29fc (patch) | |
tree | 5fe625b978fc1c3c36bf1e91c78109b9d9b8ac9c /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample | |
parent | 49799ab454f1768485608011ea1db4fddfa0e787 (diff) | |
parent | d5d1645e15fcefa89460fe8c89552797c61a128a (diff) |
Merge pull request #55597 from raulsntos/csharp-source-generators-generics
Fix C# `Godot.SourceGenerators` for generic classes
Diffstat (limited to 'modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample')
-rw-r--r-- | modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs new file mode 100644 index 0000000000..2ddb8880c2 --- /dev/null +++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Generic.cs @@ -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 + { + } +} |