diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-10 17:49:49 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-10 17:49:49 +0200 |
| commit | 67076c167dfc767a8dd9bc51c7329e9544ba799e (patch) | |
| tree | 32af5298a7ff7f48dd65f85ca9e30c444dd7a0fc /modules/gdscript/tests/scripts | |
| parent | 8611fd8400fcc2053baa2d001ef7b9d8705b9d8a (diff) | |
| parent | 4bdba718c5fcb2bd58827b8ede3ea7d0c4251fbd (diff) | |
| download | redot-engine-67076c167dfc767a8dd9bc51c7329e9544ba799e.tar.gz | |
Merge pull request #90448 from vnen/gdscript-infer-string-format
GDScript: Infer type with string format operator
Diffstat (limited to 'modules/gdscript/tests/scripts')
| -rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.gd | 6 | ||||
| -rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.out | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.gd b/modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.gd new file mode 100644 index 0000000000..c83a3a8a14 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.gd @@ -0,0 +1,6 @@ +# GH-88082 + +func test(): + var x = 1 + var message := "value: %s" % x + print(message) diff --git a/modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.out b/modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.out new file mode 100644 index 0000000000..cf6464a4c3 --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/infer_type_on_string_format.out @@ -0,0 +1,2 @@ +GDTEST_OK +value: 1 |
