Merge pull request #75988 from dalexeev/gds-unsafe-call-argument
GDScript: Improve call analysis
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# GH-73283
|
||||
|
||||
class MyClass:
|
||||
pass
|
||||
|
||||
func test():
|
||||
MyClass.not_existing_method()
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Static function "not_existing_method()" not found in base "MyClass".
|
||||
@@ -0,0 +1,4 @@
|
||||
# GH-73213
|
||||
|
||||
func test():
|
||||
print(Object())
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Invalid constructor "Object()", use "Object.new()" instead.
|
||||
Reference in New Issue
Block a user