Merge pull request #75988 from dalexeev/gds-unsafe-call-argument

GDScript: Improve call analysis
This commit is contained in:
Yuri Sizov
2023-09-27 19:07:46 +02:00
25 changed files with 184 additions and 46 deletions

View File

@@ -0,0 +1,7 @@
# GH-73283
class MyClass:
pass
func test():
MyClass.not_existing_method()

View File

@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Static function "not_existing_method()" not found in base "MyClass".

View File

@@ -0,0 +1,4 @@
# GH-73213
func test():
print(Object())

View File

@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Invalid constructor "Object()", use "Object.new()" instead.