Revert "Remove script class checks when getting function signature"
This reverts commit 0fef203b1f.
This introduced some other issues, as discussed in #72144.
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
const TestClass = preload("gdscript_duplicate_class.notest.gd")
|
||||
|
||||
func test():
|
||||
# (TestClass as GDScript).duplicate() exists
|
||||
TestClass.duplicate()
|
||||
@@ -1,2 +0,0 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Cannot call non-static function "duplicate()" on a class directly. Make an instance instead.
|
||||
@@ -1 +0,0 @@
|
||||
extends Node
|
||||
@@ -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()
|
||||
@@ -1 +0,0 @@
|
||||
GDTEST_OK
|
||||
@@ -1 +0,0 @@
|
||||
extends Node
|
||||
Reference in New Issue
Block a user