summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2024-02-15 18:18:33 +0100
committerRaul Santos <raulsntos@gmail.com>2024-02-19 06:33:13 +0100
commitfe280ef9ae65d38cbccbdc5fe197cf029a0ca397 (patch)
treeabafda3dfdfece36a2ed60c4602cb53dca8ff5ed /modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
parentae51db75e7a4b4d111cf5dcbf596bc2c8c8a3222 (diff)
downloadredot-engine-fe280ef9ae65d38cbccbdc5fe197cf029a0ca397.tar.gz
C#: Various fixes to generic scripts
- Report a diagnostic when there are multiple classes that match the script file name in the same script since that will result in a duplicate path key in the bimap and it's not allowed. - Fix InspectorPlugin to handle empty paths in case the project was built with a previous version of Godot that used empty paths for generic scripts. - Add tests for the new diagnostic GD0003.
Diffstat (limited to 'modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs')
-rw-r--r--modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
index 84d1ede065..5a83e21e96 100644
--- a/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
+++ b/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Tests/TestData/Sources/Generic.cs
@@ -4,15 +4,3 @@ partial class Generic<T> : GodotObject
{
private int _field;
}
-
-// Generic again but different generic parameters
-partial class Generic<T, R> : GodotObject
-{
- private int _field;
-}
-
-// Generic again but without generic parameters
-partial class Generic : GodotObject
-{
- private int _field;
-}