blob: 0685d0b34a458186767325b6d18fa862d6e7be48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using Godot;
// This works because it inherits from GodotObject and it doesn't have any generic type parameter.
[GlobalClass]
public partial class CustomGlobalClass : GodotObject
{
}
// This raises a GD0402 diagnostic error: global classes can't have any generic type parameter
[GlobalClass]
public partial class {|GD0402:CustomGlobalClass|}<T> : GodotObject
{
}
|