Merge pull request #94025 from dalexeev/gds-fix-implicit-cast-typed-array-param
GDScript: Fix implicit cast to typed array when passing parameter
This commit is contained in:
commit
92320c9b73
3 changed files with 25 additions and 3 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue