GDScript: Fix implicit cast to typed array when passing parameter

This commit is contained in:
Danil Alexeev
2024-07-07 13:43:09 +03:00
parent b97110cd30
commit b4cb7ec2bb
3 changed files with 25 additions and 3 deletions

View File

@@ -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())

View File

@@ -0,0 +1,2 @@
GDTEST_OK
true