Debian Codegraph @

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/GlobalClass.GD0402.cs

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