diff options
author | Dmitrii Maganov <vonagam@gmail.com> | 2023-02-13 22:02:52 +0200 |
---|---|---|
committer | Dmitrii Maganov <vonagam@gmail.com> | 2023-02-13 22:06:38 +0200 |
commit | 9cb2da89d6a763b497f87ff92bdbe8a7cc0258a8 (patch) | |
tree | 9770f43f84e97567b68958dc15e67d29a3718f2f /modules/gdscript/tests/scripts/analyzer/features | |
parent | 854d9c3d9c77270ff3260a8edcc12fccc85514c1 (diff) |
GDScript: Fix usage of ints with typed array of floats
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/features')
-rw-r--r-- | modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd b/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd index 092ae49d00..7416ecd87a 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/typed_array_usage.gd @@ -86,7 +86,8 @@ func test(): var typed_int := 556 var converted_floats: Array[float] = [typed_int] - assert(str(converted_floats) == '[556]') + converted_floats.push_back(498) + assert(str(converted_floats) == '[556, 498]') assert(converted_floats.get_typed_builtin() == TYPE_FLOAT) |