You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
GDScript: Fix usage of ints with typed array of floats
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user