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
commit 4eaafc8fa8
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 69 additions and 1 deletions

View file

@ -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();
}