mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
GDScript: Fix implicit cast to typed array when passing parameter
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# GH-93990
|
||||
|
||||
func test_param(array: Array[String]) -> void:
|
||||
print(array.get_typed_builtin() == TYPE_STRING)
|
||||
|
||||
func test() -> void:
|
||||
test_param(PackedStringArray())
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_OK
|
||||
true
|
||||
Reference in New Issue
Block a user