GDScript: Support tracking multiple analyzer and runtime errors in tests
This commit is contained in:
parent
9e6098432a
commit
f86dcd4e67
294 changed files with 540 additions and 1084 deletions
|
|
@ -1,6 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> INT_AS_ENUM_WITHOUT_MATCH
|
||||
>> Cannot cast 2 as Enum "cast_enum_bad_enum.gd.MyEnum": no enum member has matching value.
|
||||
~~ WARNING at line 5: (INT_AS_ENUM_WITHOUT_MATCH) Cannot cast 2 as Enum "cast_enum_bad_enum.gd.MyEnum": no enum member has matching value.
|
||||
2
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 4
|
||||
>> INT_AS_ENUM_WITHOUT_MATCH
|
||||
>> Cannot cast 2 as Enum "cast_enum_bad_int.gd.MyEnum": no enum member has matching value.
|
||||
~~ WARNING at line 4: (INT_AS_ENUM_WITHOUT_MATCH) Cannot cast 2 as Enum "cast_enum_bad_int.gd.MyEnum": no enum member has matching value.
|
||||
2
|
||||
|
|
|
|||
|
|
@ -1,19 +1,7 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 13
|
||||
>> CONFUSABLE_CAPTURE_REASSIGNMENT
|
||||
>> Reassigning lambda capture does not modify the outer local variable "number".
|
||||
>> WARNING
|
||||
>> Line: 14
|
||||
>> CONFUSABLE_CAPTURE_REASSIGNMENT
|
||||
>> Reassigning lambda capture does not modify the outer local variable "string".
|
||||
>> WARNING
|
||||
>> Line: 15
|
||||
>> CONFUSABLE_CAPTURE_REASSIGNMENT
|
||||
>> Reassigning lambda capture does not modify the outer local variable "vector".
|
||||
>> WARNING
|
||||
>> Line: 16
|
||||
>> CONFUSABLE_CAPTURE_REASSIGNMENT
|
||||
>> Reassigning lambda capture does not modify the outer local variable "array_assign".
|
||||
~~ WARNING at line 13: (CONFUSABLE_CAPTURE_REASSIGNMENT) Reassigning lambda capture does not modify the outer local variable "number".
|
||||
~~ WARNING at line 14: (CONFUSABLE_CAPTURE_REASSIGNMENT) Reassigning lambda capture does not modify the outer local variable "string".
|
||||
~~ WARNING at line 15: (CONFUSABLE_CAPTURE_REASSIGNMENT) Reassigning lambda capture does not modify the outer local variable "vector".
|
||||
~~ WARNING at line 16: (CONFUSABLE_CAPTURE_REASSIGNMENT) Reassigning lambda capture does not modify the outer local variable "array_assign".
|
||||
lambda 2 2 12 (2, 0) [2] [2] { &"x": 2 }
|
||||
outer 2 1 1 (1, 0) [1] [2] { &"x": 2 }
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 3
|
||||
>> CONFUSABLE_LOCAL_DECLARATION
|
||||
>> The variable "a" is declared below in the parent block.
|
||||
~~ WARNING at line 3: (CONFUSABLE_LOCAL_DECLARATION) The variable "a" is declared below in the parent block.
|
||||
1
|
||||
2
|
||||
|
|
|
|||
|
|
@ -1,11 +1,5 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 4
|
||||
>> CONFUSABLE_LOCAL_USAGE
|
||||
>> The identifier "a" will be shadowed below in the block.
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> SHADOWED_VARIABLE
|
||||
>> The local variable "a" is shadowing an already-declared variable at line 1 in the current class.
|
||||
~~ WARNING at line 4: (CONFUSABLE_LOCAL_USAGE) The identifier "a" will be shadowed below in the block.
|
||||
~~ WARNING at line 5: (SHADOWED_VARIABLE) The local variable "a" is shadowing an already-declared variable at line 1 in the current class.
|
||||
1
|
||||
2
|
||||
|
|
|
|||
|
|
@ -1,15 +1,6 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 4
|
||||
>> CONFUSABLE_LOCAL_USAGE
|
||||
>> The identifier "a" will be shadowed below in the block.
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> CONFUSABLE_LOCAL_USAGE
|
||||
>> The identifier "a" will be shadowed below in the block.
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> SHADOWED_VARIABLE
|
||||
>> The local variable "a" is shadowing an already-declared variable at line 1 in the current class.
|
||||
~~ WARNING at line 4: (CONFUSABLE_LOCAL_USAGE) The identifier "a" will be shadowed below in the block.
|
||||
~~ WARNING at line 5: (CONFUSABLE_LOCAL_USAGE) The identifier "a" will be shadowed below in the block.
|
||||
~~ WARNING at line 5: (SHADOWED_VARIABLE) The local variable "a" is shadowing an already-declared variable at line 1 in the current class.
|
||||
1
|
||||
2
|
||||
|
|
|
|||
|
|
@ -1,12 +1,6 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> CONFUSABLE_LOCAL_USAGE
|
||||
>> The identifier "a" will be shadowed below in the block.
|
||||
>> WARNING
|
||||
>> Line: 6
|
||||
>> SHADOWED_VARIABLE
|
||||
>> The local variable "a" is shadowing an already-declared variable at line 1 in the current class.
|
||||
~~ WARNING at line 5: (CONFUSABLE_LOCAL_USAGE) The identifier "a" will be shadowed below in the block.
|
||||
~~ WARNING at line 6: (SHADOWED_VARIABLE) The local variable "a" is shadowing an already-declared variable at line 1 in the current class.
|
||||
1
|
||||
2
|
||||
1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 4
|
||||
>> ENUM_VARIABLE_WITHOUT_DEFAULT
|
||||
>> The variable "has_no_zero" has an enum type and does not set an explicit default value. The default will be set to "0".
|
||||
~~ WARNING at line 4: (ENUM_VARIABLE_WITHOUT_DEFAULT) The variable "has_no_zero" has an enum type and does not set an explicit default value. The default will be set to "0".
|
||||
0
|
||||
0
|
||||
|
|
|
|||
|
|
@ -1,22 +1,7 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> GET_NODE_DEFAULT_WITHOUT_ONREADY
|
||||
>> The default value is using "$" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
>> WARNING
|
||||
>> Line: 6
|
||||
>> GET_NODE_DEFAULT_WITHOUT_ONREADY
|
||||
>> The default value is using "get_node()" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
>> WARNING
|
||||
>> Line: 7
|
||||
>> GET_NODE_DEFAULT_WITHOUT_ONREADY
|
||||
>> The default value is using "get_node()" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
>> WARNING
|
||||
>> Line: 8
|
||||
>> GET_NODE_DEFAULT_WITHOUT_ONREADY
|
||||
>> The default value is using "get_node()" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
>> WARNING
|
||||
>> Line: 9
|
||||
>> GET_NODE_DEFAULT_WITHOUT_ONREADY
|
||||
>> The default value is using "$" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
~~ WARNING at line 5: (GET_NODE_DEFAULT_WITHOUT_ONREADY) The default value is using "$" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
~~ WARNING at line 6: (GET_NODE_DEFAULT_WITHOUT_ONREADY) The default value is using "get_node()" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
~~ WARNING at line 7: (GET_NODE_DEFAULT_WITHOUT_ONREADY) The default value is using "get_node()" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
~~ WARNING at line 8: (GET_NODE_DEFAULT_WITHOUT_ONREADY) The default value is using "get_node()" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
~~ WARNING at line 9: (GET_NODE_DEFAULT_WITHOUT_ONREADY) The default value is using "$" which won't return nodes in the scene tree before "_ready()" is called. Use the "@onready" annotation to solve this.
|
||||
warn
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 2
|
||||
>> INFERENCE_ON_VARIANT
|
||||
>> The variable type is being inferred from a Variant value, so it will be typed as Variant.
|
||||
~~ WARNING at line 2: (INFERENCE_ON_VARIANT) The variable type is being inferred from a Variant value, so it will be typed as Variant.
|
||||
warn
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 4
|
||||
>> SHADOWED_VARIABLE
|
||||
>> The local function parameter "shadow" is shadowing an already-declared variable at line 1 in the current class.
|
||||
~~ WARNING at line 4: (SHADOWED_VARIABLE) The local function parameter "shadow" is shadowing an already-declared variable at line 1 in the current class.
|
||||
shadow
|
||||
|
|
|
|||
|
|
@ -1,5 +1,2 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 2
|
||||
>> UNUSED_PARAMETER
|
||||
>> The parameter "unused" is never used in the function "<anonymous lambda>()". If this is intended, prefix it with an underscore: "_unused".
|
||||
~~ WARNING at line 2: (UNUSED_PARAMETER) The parameter "unused" is never used in the function "<anonymous lambda>()". If this is intended, prefix it with an underscore: "_unused".
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 1
|
||||
>> MISSING_TOOL
|
||||
>> The base class script has the "@tool" annotation, but this script does not have it.
|
||||
>> WARNING
|
||||
>> Line: 3
|
||||
>> MISSING_TOOL
|
||||
>> The base class script has the "@tool" annotation, but this script does not have it.
|
||||
~~ WARNING at line 1: (MISSING_TOOL) The base class script has the "@tool" annotation, but this script does not have it.
|
||||
~~ WARNING at line 3: (MISSING_TOOL) The base class script has the "@tool" annotation, but this script does not have it.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 3
|
||||
>> ONREADY_WITH_EXPORT
|
||||
>> "@onready" will set the default value after "@export" takes effect and will override it.
|
||||
~~ WARNING at line 3: (ONREADY_WITH_EXPORT) "@onready" will set the default value after "@export" takes effect and will override it.
|
||||
warn
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 4
|
||||
>> NATIVE_METHOD_OVERRIDE
|
||||
>> The method "get()" overrides a method from native class "Object". This won't be called by the engine and may not work as expected.
|
||||
~~ WARNING at line 4: (NATIVE_METHOD_OVERRIDE) The method "get()" overrides a method from native class "Object". This won't be called by the engine and may not work as expected.
|
||||
warn
|
||||
|
|
|
|||
|
|
@ -1,37 +1,10 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 26
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 28
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 32
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 38
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 44
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 45
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 46
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 51
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
>> WARNING
|
||||
>> Line: 53
|
||||
>> REDUNDANT_AWAIT
|
||||
>> "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 26: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 28: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 32: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 38: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 44: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 45: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 46: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 51: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
~~ WARNING at line 53: (REDUNDANT_AWAIT) "await" keyword not needed in this case, because the expression isn't a coroutine nor a signal.
|
||||
|
|
|
|||
|
|
@ -1,46 +1,13 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 6
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The variable "print_debug" has the same name as a built-in function.
|
||||
>> WARNING
|
||||
>> Line: 13
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The variable "Array" has the same name as a built-in type.
|
||||
>> WARNING
|
||||
>> Line: 14
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The variable "Node" has the same name as a native class.
|
||||
>> WARNING
|
||||
>> Line: 15
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The variable "is_same" has the same name as a built-in function.
|
||||
>> WARNING
|
||||
>> Line: 16
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The variable "sqrt" has the same name as a built-in function.
|
||||
>> WARNING
|
||||
>> Line: 17
|
||||
>> SHADOWED_VARIABLE
|
||||
>> The local variable "member" is shadowing an already-declared variable at line 4 in the current class.
|
||||
>> WARNING
|
||||
>> Line: 18
|
||||
>> SHADOWED_VARIABLE_BASE_CLASS
|
||||
>> The local variable "reference" is shadowing an already-declared method in the base class "RefCounted".
|
||||
>> WARNING
|
||||
>> Line: 19
|
||||
>> SHADOWED_GLOBAL_IDENTIFIER
|
||||
>> The variable "ShadowedClass" has the same name as a global class defined in "shadowning.gd".
|
||||
>> WARNING
|
||||
>> Line: 20
|
||||
>> SHADOWED_VARIABLE_BASE_CLASS
|
||||
>> The local variable "base_variable_member" is shadowing an already-declared variable at line 4 in the base class "ShadowingBase".
|
||||
>> WARNING
|
||||
>> Line: 21
|
||||
>> SHADOWED_VARIABLE_BASE_CLASS
|
||||
>> The local constant "base_function_member" is shadowing an already-declared function at line 6 in the base class "ShadowingBase".
|
||||
>> WARNING
|
||||
>> Line: 22
|
||||
>> SHADOWED_VARIABLE_BASE_CLASS
|
||||
>> The local variable "base_const_member" is shadowing an already-declared constant at line 3 in the base class "ShadowingBase".
|
||||
~~ WARNING at line 6: (SHADOWED_GLOBAL_IDENTIFIER) The variable "print_debug" has the same name as a built-in function.
|
||||
~~ WARNING at line 13: (SHADOWED_GLOBAL_IDENTIFIER) The variable "Array" has the same name as a built-in type.
|
||||
~~ WARNING at line 14: (SHADOWED_GLOBAL_IDENTIFIER) The variable "Node" has the same name as a native class.
|
||||
~~ WARNING at line 15: (SHADOWED_GLOBAL_IDENTIFIER) The variable "is_same" has the same name as a built-in function.
|
||||
~~ WARNING at line 16: (SHADOWED_GLOBAL_IDENTIFIER) The variable "sqrt" has the same name as a built-in function.
|
||||
~~ WARNING at line 17: (SHADOWED_VARIABLE) The local variable "member" is shadowing an already-declared variable at line 4 in the current class.
|
||||
~~ WARNING at line 18: (SHADOWED_VARIABLE_BASE_CLASS) The local variable "reference" is shadowing an already-declared method in the base class "RefCounted".
|
||||
~~ WARNING at line 19: (SHADOWED_GLOBAL_IDENTIFIER) The variable "ShadowedClass" has the same name as a global class defined in "shadowning.gd".
|
||||
~~ WARNING at line 20: (SHADOWED_VARIABLE_BASE_CLASS) The local variable "base_variable_member" is shadowing an already-declared variable at line 4 in the base class "ShadowingBase".
|
||||
~~ WARNING at line 21: (SHADOWED_VARIABLE_BASE_CLASS) The local constant "base_function_member" is shadowing an already-declared function at line 6 in the base class "ShadowingBase".
|
||||
~~ WARNING at line 22: (SHADOWED_VARIABLE_BASE_CLASS) The local variable "base_const_member" is shadowing an already-declared constant at line 3 in the base class "ShadowingBase".
|
||||
warn
|
||||
|
|
|
|||
|
|
@ -1,57 +1,15 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 28
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 29
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 30
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 31
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 34
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 35
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 36
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 37
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 40
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "node_func()" requires the subtype "Node" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 41
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the function "node_func()" requires the subtype "Node" but the supertype "Object" was provided.
|
||||
>> WARNING
|
||||
>> Line: 47
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the constructor "Callable()" requires the subtype "Object" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 49
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the constructor "Dictionary()" requires the subtype "Dictionary" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 50
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the constructor "Vector2()" requires the subtype "Vector2" or "Vector2i" but the supertype "Variant" was provided.
|
||||
>> WARNING
|
||||
>> Line: 51
|
||||
>> UNSAFE_CALL_ARGUMENT
|
||||
>> The argument 1 of the constructor "int()" requires the subtype "int", "bool", or "float" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 28: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 29: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 30: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 31: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "int_func()" requires the subtype "int" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 34: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 35: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 36: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 37: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "float_func()" requires the subtype "float" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 40: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "node_func()" requires the subtype "Node" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 41: (UNSAFE_CALL_ARGUMENT) The argument 1 of the function "node_func()" requires the subtype "Node" but the supertype "Object" was provided.
|
||||
~~ WARNING at line 47: (UNSAFE_CALL_ARGUMENT) The argument 1 of the constructor "Callable()" requires the subtype "Object" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 49: (UNSAFE_CALL_ARGUMENT) The argument 1 of the constructor "Dictionary()" requires the subtype "Dictionary" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 50: (UNSAFE_CALL_ARGUMENT) The argument 1 of the constructor "Vector2()" requires the subtype "Vector2" or "Vector2i" but the supertype "Variant" was provided.
|
||||
~~ WARNING at line 51: (UNSAFE_CALL_ARGUMENT) The argument 1 of the constructor "int()" requires the subtype "int", "bool", or "float" but the supertype "Variant" was provided.
|
||||
|
|
|
|||
|
|
@ -1,33 +1,9 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 5
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "int" is unsafe.
|
||||
>> WARNING
|
||||
>> Line: 6
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "Node" is unsafe.
|
||||
>> WARNING
|
||||
>> Line: 10
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "int" is unsafe.
|
||||
>> WARNING
|
||||
>> Line: 11
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "Node" is unsafe.
|
||||
>> WARNING
|
||||
>> Line: 15
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "int" is unsafe.
|
||||
>> WARNING
|
||||
>> Line: 16
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "Node" is unsafe.
|
||||
>> WARNING
|
||||
>> Line: 20
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "int" is unsafe.
|
||||
>> WARNING
|
||||
>> Line: 21
|
||||
>> UNSAFE_CAST
|
||||
>> Casting "Variant" to "Node" is unsafe.
|
||||
~~ WARNING at line 5: (UNSAFE_CAST) Casting "Variant" to "int" is unsafe.
|
||||
~~ WARNING at line 6: (UNSAFE_CAST) Casting "Variant" to "Node" is unsafe.
|
||||
~~ WARNING at line 10: (UNSAFE_CAST) Casting "Variant" to "int" is unsafe.
|
||||
~~ WARNING at line 11: (UNSAFE_CAST) Casting "Variant" to "Node" is unsafe.
|
||||
~~ WARNING at line 15: (UNSAFE_CAST) Casting "Variant" to "int" is unsafe.
|
||||
~~ WARNING at line 16: (UNSAFE_CAST) Casting "Variant" to "Node" is unsafe.
|
||||
~~ WARNING at line 20: (UNSAFE_CAST) Casting "Variant" to "int" is unsafe.
|
||||
~~ WARNING at line 21: (UNSAFE_CAST) Casting "Variant" to "Node" is unsafe.
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 3
|
||||
>> UNUSED_PRIVATE_CLASS_VARIABLE
|
||||
>> The class variable "_a" is declared but never used in the class.
|
||||
>> WARNING
|
||||
>> Line: 7
|
||||
>> UNUSED_PRIVATE_CLASS_VARIABLE
|
||||
>> The class variable "_d" is declared but never used in the class.
|
||||
~~ WARNING at line 3: (UNUSED_PRIVATE_CLASS_VARIABLE) The class variable "_a" is declared but never used in the class.
|
||||
~~ WARNING at line 7: (UNUSED_PRIVATE_CLASS_VARIABLE) The class variable "_d" is declared but never used in the class.
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 11
|
||||
>> UNUSED_SIGNAL
|
||||
>> The signal "used_with_dynamic_name" is declared but never explicitly used in the class.
|
||||
>> WARNING
|
||||
>> Line: 12
|
||||
>> UNUSED_SIGNAL
|
||||
>> The signal "just_unused" is declared but never explicitly used in the class.
|
||||
~~ WARNING at line 11: (UNUSED_SIGNAL) The signal "used_with_dynamic_name" is declared but never explicitly used in the class.
|
||||
~~ WARNING at line 12: (UNUSED_SIGNAL) The signal "just_unused" is declared but never explicitly used in the class.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue