-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GDScript: Fix
UNSAFE_CALL_ARGUMENT
warning for Variant
constructors
- Loading branch information
Showing
5 changed files
with
72 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 32 additions & 8 deletions
40
modules/gdscript/tests/scripts/analyzer/warnings/unsafe_call_argument.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,57 @@ | ||
GDTEST_OK | ||
>> WARNING | ||
>> Line: 24 | ||
>> 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: 25 | ||
>> 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: 26 | ||
>> 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: 27 | ||
>> 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: 30 | ||
>> 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: 31 | ||
>> 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: 32 | ||
>> 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: 33 | ||
>> 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters