diff options
author | Pawel Lampe <pawel.lampe@gmail.com> | 2021-11-21 21:17:35 +0100 |
---|---|---|
committer | Pawel Lampe <pawel.lampe@gmail.com> | 2021-11-21 21:18:46 +0100 |
commit | 1a15a3adf6393f70dba41cc6dd4375656b8f0504 (patch) | |
tree | 2196b2a1543a08b6bb8a047f9c6b33eb5b6ac1b3 /modules/gdscript/tests/scripts | |
parent | ed02b8af59fceb48798c857306335fe0f7ff6a8a (diff) |
Fix GDScript parser crash on 'dollar mixed with assignment' expression
fixes #53696
Diffstat (limited to 'modules/gdscript/tests/scripts')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd | 2 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd new file mode 100644 index 0000000000..e9690ee93d --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd @@ -0,0 +1,2 @@ +func test(): + $=$ diff --git a/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out new file mode 100644 index 0000000000..b3dc181a22 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out @@ -0,0 +1,2 @@ +GDTEST_PARSER_ERROR +Expect node path as string or identifier after "$". |