Merge pull request #91375 from paulloz/dotnet/prevent-generator-crash-on-exported-unconstructed-generic-arrays

C#: Fix generator crash w/ generic arrays
This commit is contained in:
Rémi Verschelde
2024-05-02 12:46:42 +02:00
4 changed files with 69 additions and 1 deletions
@@ -0,0 +1,7 @@
using Godot;
public abstract partial class AbstractGenericNode<[MustBeVariant] T> : Node
{
[Export] // This should be included, but without type hints.
public Godot.Collections.Array<T> MyArray { get; set; } = new();
}