diff options
author | Dmitrii Maganov <vonagam@gmail.com> | 2022-12-30 09:58:07 +0200 |
---|---|---|
committer | Dmitrii Maganov <vonagam@gmail.com> | 2023-01-12 17:07:45 +0200 |
commit | 38c214d483a12d4c6621a7e424971e38effa2ec0 (patch) | |
tree | 5583d1f3efd3a328b6192e6d5453fab5f33ac29b /modules/gdscript/tests/scripts/analyzer/errors | |
parent | e80cf3259ee23fe75da0ea41dcf67680e607f063 (diff) |
GDScript: Fix some issues with assignments that involve untyped things
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/errors')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.gd | 3 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.out | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.gd b/modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.gd new file mode 100644 index 0000000000..664e364493 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.gd @@ -0,0 +1,3 @@ +func test(): + var foo: bool = true + foo += 'bar' diff --git a/modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.out b/modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.out new file mode 100644 index 0000000000..358b096a64 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/incompatible_assignment.out @@ -0,0 +1,2 @@ +GDTEST_ANALYZER_ERROR +Invalid operands "bool" and "String" for assignment operator. |