-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GDScript: Support tracking multiple analyzer and runtime errors in tests
- Loading branch information
Showing
293 changed files
with
537 additions
and
1,083 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# Some tests handle invalid syntax deliberately; exclude relevant attributes. | ||
# See also the `file-format` section in `.pre-commit-config.yaml`. | ||
|
||
[parser/features/mixed_indentation_on_blank_lines.gd] | ||
trim_trailing_whitespace = false | ||
|
||
[parser/warnings/empty_file_newline.notest.gd] | ||
[parser/warnings/empty_file_newline.norun.gd] | ||
insert_final_newline = false | ||
|
||
[parser/warnings/empty_file_newline_comment.notest.gd] | ||
[parser/warnings/empty_file_newline_comment.norun.gd] | ||
insert_final_newline = false |
8 changes: 8 additions & 0 deletions
8
modules/gdscript/tests/scripts/analyzer/errors/abstract_class_instantiate.gd
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,2 +1,10 @@ | ||
class A extends InstancePlaceholder: | ||
func _init(): | ||
print('no') | ||
|
||
class B extends A: | ||
pass | ||
|
||
func test(): | ||
InstancePlaceholder.new() | ||
B.new() |
5 changes: 4 additions & 1 deletion
5
modules/gdscript/tests/scripts/analyzer/errors/abstract_class_instantiate.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,2 +1,5 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Native class "InstancePlaceholder" cannot be constructed as it is abstract. | ||
>> ERROR at line 9: Native class "InstancePlaceholder" cannot be constructed as it is abstract. | ||
>> ERROR at line 9: Name "new" is a Callable. You can call it with "new.call()" instead. | ||
>> ERROR at line 10: Class "abstract_script_instantiate.gd::B" cannot be constructed as it is based on abstract native class "InstancePlaceholder". | ||
>> ERROR at line 10: Name "new" is a Callable. You can call it with "new.call()" instead. |
9 changes: 0 additions & 9 deletions
9
modules/gdscript/tests/scripts/analyzer/errors/abstract_script_instantiate.gd
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
modules/gdscript/tests/scripts/analyzer/errors/abstract_script_instantiate.out
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/annotation_non_constant_parameter.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Argument 1 of annotation "@export_range" isn't a constant expression. | ||
>> ERROR at line 3: Argument 1 of annotation "@export_range" isn't a constant expression. |
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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a new value to a constant. | ||
>> ERROR at line 3: Cannot assign a new value to a constant. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/assign_named_enum.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a new value to a constant. | ||
>> ERROR at line 3: Cannot assign a new value to a constant. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/assign_signal.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a new value to a constant. | ||
>> ERROR at line 4: Cannot assign a new value to a constant. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/assign_to_read_only_property.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a new value to a read-only property. | ||
>> ERROR at line 3: Cannot assign a new value to a read-only property. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/assign_to_read_only_property_indirectly.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a new value to a read-only property. | ||
>> ERROR at line 3: Cannot assign a new value to a read-only property. |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/assymetric_assignment_bad.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a value of type "Color" as "String". | ||
>> ERROR at line 2: Cannot assign a value of type "Color" as "String". | ||
>> ERROR at line 2: Cannot assign a value of type Color to variable "var_color" with specified type String. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot infer the type of "_a" variable because the value doesn't have a set type. | ||
>> ERROR at line 4: Cannot infer the type of "_a" variable because the value doesn't have a set type. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_left_operand.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Invalid operands to operator <<, float and int. | ||
>> ERROR at line 3: Invalid operands to operator <<, float and int. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/bitwise_float_right_operand.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Invalid operands to operator >>, int and float. | ||
>> ERROR at line 3: Invalid operands to operator >>, int and float. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/call_not_existing_static_method.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Static function "not_existing_method()" not found in base "MyClass". | ||
>> ERROR at line 7: Static function "not_existing_method()" not found in base "MyClass". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/cast_int_to_array.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Invalid cast. Cannot convert from "int" to "Array". | ||
>> ERROR at line 3: Invalid cast. Cannot convert from "int" to "Array". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/cast_int_to_object.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Invalid cast. Cannot convert from "int" to "Node". | ||
>> ERROR at line 3: Invalid cast. Cannot convert from "int" to "Node". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/cast_object_to_int.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Invalid cast. Cannot convert from "RefCounted" to "int". | ||
>> ERROR at line 3: Invalid cast. Cannot convert from "RefCounted" to "int". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/class_name_shadows_builtin_type.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Class "Vector2" hides a built-in type. | ||
>> ERROR at line 1: Class "Vector2" hides a built-in type. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/constant_array_index_assign.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a new value to a constant. | ||
>> ERROR at line 5: Cannot assign a new value to a constant. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/constant_dictionary_index_assign.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a new value to a constant. | ||
>> ERROR at line 5: Cannot assign a new value to a constant. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/constant_name_shadows_builtin_type.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
The member "Vector2" cannot have the same name as a builtin type. | ||
>> ERROR at line 1: The member "Vector2" cannot have the same name as a builtin type. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/constant_subscript_type.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Expression is of type "int" so it can't be of type "String". | ||
>> ERROR at line 5: Expression is of type "int" so it can't be of type "String". |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/constant_used_as_function.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Member "CONSTANT" is not a function. | ||
>> ERROR at line 5: Member "CONSTANT" is not a function. | ||
>> ERROR at line 5: Name "CONSTANT" called as a function but is a "int". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/constructor_call_type.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Expression is of type "B" so it can't be of type "C". | ||
>> ERROR at line 10: Expression is of type "B" so it can't be of type "C". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/cyclic_inheritance.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cyclic inheritance. | ||
>> ERROR at line 4: Cyclic inheritance. |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_const.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve member "c1": Cyclic reference. | ||
>> ERROR at line 5: Could not resolve member "c1": Cyclic reference. | ||
>> ERROR at line 5: Could not resolve type for constant "c2". |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_enum.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve member "E1": Cyclic reference. | ||
>> ERROR at line 5: Could not resolve member "E1": Cyclic reference. | ||
>> ERROR at line 5: Enum values must be constant. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_enum_value.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve member "EV1": Cyclic reference. | ||
>> ERROR at line 5: Could not resolve member "EV1": Cyclic reference. |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_external.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve external class member "v". | ||
>> ERROR at line 4: Could not resolve external class member "v". | ||
>> ERROR at line 4: Cannot find member "v" in base "/home/danil/godot-src/modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_external_a.notest.gd". |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_func.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve member "f1": Cyclic reference. | ||
>> ERROR at line 8: Could not resolve member "f1": Cyclic reference. | ||
>> ERROR at line 8: Cannot infer the type of "p" parameter because the value doesn't have a set type. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_override.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve member "f": Cyclic reference. | ||
>> ERROR at line 11: Could not resolve member "f": Cyclic reference. |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_var.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve member "v1": Cyclic reference. | ||
>> ERROR at line 5: Could not resolve member "v1": Cyclic reference. | ||
>> ERROR at line 5: Cannot infer the type of "v2" variable because the value doesn't have a set type. |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/cyclic_ref_var_self.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Could not resolve member "v1": Cyclic reference. | ||
>> ERROR at line 1: Could not resolve member "v1": Cyclic reference. | ||
>> ERROR at line 1: Could not resolve type for variable "v1". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/dictionary_duplicate_key_lua.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Key "a" was already used in this dictionary (at line 3). | ||
>> ERROR at line 5: Key "a" was already used in this dictionary (at line 3). |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/dictionary_duplicate_key_lua_with_string.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Key "a" was already used in this dictionary (at line 3). | ||
>> ERROR at line 5: Key "a" was already used in this dictionary (at line 3). |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/dictionary_duplicate_key_python.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Key "a" was already used in this dictionary (at line 3). | ||
>> ERROR at line 5: Key "a" was already used in this dictionary (at line 3). |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/dictionary_string_stringname_equivalent.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Key "key" was already used in this dictionary (at line 5). | ||
>> ERROR at line 6: Key "key" was already used in this dictionary (at line 5). |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/engine_singleton_instantiate.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot construct native class "Time" because it is an engine singleton. | ||
>> ERROR at line 2: Cannot construct native class "Time" because it is an engine singleton. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/enum_bad_method.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot call non-const Dictionary function "clear()" on enum "Enum". | ||
>> ERROR at line 4: Cannot call non-const Dictionary function "clear()" on enum "Enum". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/enum_bad_value.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot find member "V3" in base "enum_bad_value.gd.Enum". | ||
>> ERROR at line 4: Cannot find member "V3" in base "enum_bad_value.gd.Enum". |
3 changes: 2 additions & 1 deletion
3
...les/gdscript/tests/scripts/analyzer/errors/enum_class_var_assign_with_wrong_enum_type.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a value of type "enum_class_var_assign_with_wrong_enum_type.gd.MyOtherEnum" as "enum_class_var_assign_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 9: Cannot assign a value of type "enum_class_var_assign_with_wrong_enum_type.gd.MyOtherEnum" as "enum_class_var_assign_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 9: Value of type "enum_class_var_assign_with_wrong_enum_type.gd.MyOtherEnum" cannot be assigned to a variable of type "enum_class_var_assign_with_wrong_enum_type.gd.MyEnum". |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/enum_class_var_init_with_wrong_enum_type.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a value of type "enum_class_var_init_with_wrong_enum_type.gd.MyOtherEnum" as "enum_class_var_init_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 5: Cannot assign a value of type "enum_class_var_init_with_wrong_enum_type.gd.MyOtherEnum" as "enum_class_var_init_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 5: Cannot assign a value of type enum_class_var_init_with_wrong_enum_type.gd.MyOtherEnum to variable "class_var" with specified type enum_class_var_init_with_wrong_enum_type.gd.MyEnum. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/enum_duplicate_bad_method.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot call non-const Dictionary function "clear()" on enum "Enum". | ||
>> ERROR at line 5: Cannot call non-const Dictionary function "clear()" on enum "Enum". |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/enum_float_value.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Enum values must be integers. | ||
>> ERROR at line 3: Enum values must be integers. |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/enum_function_parameter_wrong_type.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot pass a value of type "enum_function_parameter_wrong_type.gd.MyOtherEnum" as "enum_function_parameter_wrong_type.gd.MyEnum". | ||
>> ERROR at line 8: Cannot pass a value of type "enum_function_parameter_wrong_type.gd.MyOtherEnum" as "enum_function_parameter_wrong_type.gd.MyEnum". | ||
>> ERROR at line 8: Invalid argument for "enum_func()" function: argument 1 should be "enum_function_parameter_wrong_type.gd.MyEnum" but is "enum_function_parameter_wrong_type.gd.MyOtherEnum". |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/enum_function_return_wrong_type.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot return a value of type "enum_function_return_wrong_type.gd.MyOtherEnum" as "enum_function_return_wrong_type.gd.MyEnum". | ||
>> ERROR at line 5: Cannot return a value of type "enum_function_return_wrong_type.gd.MyOtherEnum" as "enum_function_return_wrong_type.gd.MyEnum". | ||
>> ERROR at line 5: Cannot return value of type "enum_function_return_wrong_type.gd.MyOtherEnum" because the function return type is "enum_function_return_wrong_type.gd.MyEnum". |
3 changes: 2 additions & 1 deletion
3
...script/tests/scripts/analyzer/errors/enum_local_var_assign_outer_with_wrong_enum_type.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a value of type "enum_local_var_assign_outer_with_wrong_enum_type.gd::InnerClass.MyEnum" as "enum_local_var_assign_outer_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 9: Cannot assign a value of type "enum_local_var_assign_outer_with_wrong_enum_type.gd::InnerClass.MyEnum" as "enum_local_var_assign_outer_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 9: Value of type "enum_local_var_assign_outer_with_wrong_enum_type.gd::InnerClass.MyEnum" cannot be assigned to a variable of type "enum_local_var_assign_outer_with_wrong_enum_type.gd.MyEnum". |
3 changes: 2 additions & 1 deletion
3
...les/gdscript/tests/scripts/analyzer/errors/enum_local_var_assign_with_wrong_enum_type.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a value of type "enum_local_var_assign_with_wrong_enum_type.gd.MyOtherEnum" as "enum_local_var_assign_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 7: Cannot assign a value of type "enum_local_var_assign_with_wrong_enum_type.gd.MyOtherEnum" as "enum_local_var_assign_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 7: Value of type "enum_local_var_assign_with_wrong_enum_type.gd.MyOtherEnum" cannot be assigned to a variable of type "enum_local_var_assign_with_wrong_enum_type.gd.MyEnum". |
3 changes: 2 additions & 1 deletion
3
modules/gdscript/tests/scripts/analyzer/errors/enum_local_var_init_with_wrong_enum_type.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,2 +1,3 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cannot assign a value of type "enum_local_var_init_with_wrong_enum_type.gd.MyOtherEnum" as "enum_local_var_init_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 5: Cannot assign a value of type "enum_local_var_init_with_wrong_enum_type.gd.MyOtherEnum" as "enum_local_var_init_with_wrong_enum_type.gd.MyEnum". | ||
>> ERROR at line 5: Cannot assign a value of type enum_local_var_init_with_wrong_enum_type.gd.MyOtherEnum to variable "local_var" with specified type enum_local_var_init_with_wrong_enum_type.gd.MyEnum. |
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/enum_name_shadows_builtin_type.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,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
The member "Vector2" cannot have the same name as a builtin type. | ||
>> ERROR at line 1: The member "Vector2" cannot have the same name as a builtin type. |
Oops, something went wrong.