mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 10:31:15 +00:00
C# Add test suite for Diagnostic Analyzers: GlobalClass and MustBeVariant
This commit is contained in:
parent
13a0d6e9b2
commit
7a90c56c00
12 changed files with 418 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
namespace Godot.SourceGenerators.Sample;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class CustomGlobalClass : GodotObject
|
||||
{
|
||||
}
|
||||
|
||||
// This doesn't works because global classes can't have any generic type parameter.
|
||||
/*
|
||||
[GlobalClass]
|
||||
public partial class CustomGlobalClass<T> : Node
|
||||
{
|
||||
}
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue