mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
GDScript: Fix incorrect error message for utility functions
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
func test():
|
||||
print(len(Color())) # GDScript utility function.
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Invalid argument for "len()" function: Value of type 'Color' can't provide a length.
|
||||
@@ -0,0 +1,2 @@
|
||||
func test():
|
||||
print(floor(Color())) # Built-in utility function.
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Invalid argument for "floor()" function: Argument "x" must be "int", "float", "Vector2", "Vector2i", "Vector3", "Vector3i", "Vector4", or "Vector4i".
|
||||
Reference in New Issue
Block a user