diff options
author | Dmitrii Maganov <vonagam@gmail.com> | 2023-01-13 20:51:29 +0200 |
---|---|---|
committer | Dmitrii Maganov <vonagam@gmail.com> | 2023-01-13 20:51:29 +0200 |
commit | a1e0281b45ccea94c679800e22377fc1a2536de1 (patch) | |
tree | 6e81b6bc032ab7f2c61ac08e786b17c4aa17ac69 /modules/gdscript/tests/scripts/analyzer/features | |
parent | 228db366bf7eee5cc1623f009d27e88ed80b5d7d (diff) |
GDScript: Disallow type inference with untyped initializer
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/features')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.gd | 5 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.out | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.gd b/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.gd index 2d2c2bef19..595563541f 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.gd @@ -1,9 +1,4 @@ func test(): - var one_0 = 0 - one_0 = 1 - var one_1 := one_0 - print(one_1) - var two: Variant = 0 two += 2 print(two) diff --git a/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.out b/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.out index 7536c38490..0ddfa4b75f 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.out +++ b/modules/gdscript/tests/scripts/analyzer/features/assignments_with_untyped.out @@ -1,5 +1,4 @@ GDTEST_OK -1 2 3 4 |