diff options
| author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-02-06 23:32:28 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-06 23:32:28 +0300 |
| commit | c0edea37efeb4602d598e96617befe8f0938f798 (patch) | |
| tree | 49a3e54214c314a942b703d056cb722734866aa0 /modules/gdscript/tests/scripts/analyzer/errors | |
| parent | 5964e4c202980f5530bc62d448962c6e71f4dcb5 (diff) | |
| parent | 685db28e2920150737bc53d5c86dcc64cc42bb60 (diff) | |
Merge pull request #72677 from dalexeev/gds-await-infer-type
GDScript: Fix `await` type inference
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/errors')
| -rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.gd | 4 | ||||
| -rw-r--r-- | modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.out | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.gd b/modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.gd new file mode 100644 index 0000000000..c787d9e50e --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.gd @@ -0,0 +1,4 @@ +signal my_signal() + +func test(): + var _a := await my_signal diff --git a/modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.out b/modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.out new file mode 100644 index 0000000000..8f8744ad7e --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/errors/await_signal_no_infer.out @@ -0,0 +1,2 @@ +GDTEST_ANALYZER_ERROR +Cannot infer the type of "_a" variable because the value doesn't have a set type. |