From 98921d8fbaa83f53f0205ea77f522e37ba30ead2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 7 Feb 2023 16:28:52 +0100 Subject: Revert "Remove script class checks when getting function signature" This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144. --- .../gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd | 6 ------ .../gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out | 1 - .../scripts/analyzer/features/gdscript_duplicate_class.notest.gd | 1 - 3 files changed, 8 deletions(-) delete mode 100644 modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd delete mode 100644 modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out delete mode 100644 modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd (limited to 'modules/gdscript/tests/scripts/analyzer/features') diff --git a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd b/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd deleted file mode 100644 index 030daf502c..0000000000 --- a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.gd +++ /dev/null @@ -1,6 +0,0 @@ -const TestClass = preload("gdscript_duplicate_class.notest.gd") - -func test(): - # TestClass.duplicate() fails - @warning_ignore("return_value_discarded") - (TestClass as GDScript).duplicate() diff --git a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out b/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out deleted file mode 100644 index d73c5eb7cd..0000000000 --- a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate.out +++ /dev/null @@ -1 +0,0 @@ -GDTEST_OK diff --git a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd b/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd deleted file mode 100644 index 61510e14cd..0000000000 --- a/modules/gdscript/tests/scripts/analyzer/features/gdscript_duplicate_class.notest.gd +++ /dev/null @@ -1 +0,0 @@ -extends Node -- cgit v1.2.3