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:
commit
4eaafc8fa8
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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue