Core: Fix implicit conversions in ContainerTypeValidate

This commit is contained in:
Danil Alexeev 2026-01-09 22:54:08 +03:00
parent 728c159f01
commit 37f09e579e
No known key found for this signature in database
GPG key ID: 5A52F75A8679EC57
3 changed files with 20 additions and 10 deletions

View file

@ -0,0 +1,6 @@
func test():
# GH-114299
var a1: Array[PackedInt32Array] = [[1]]
var a2 = [[2]] as Array[PackedInt32Array]
print(var_to_str(a1))
print(var_to_str(a2))

View file

@ -0,0 +1,3 @@
GDTEST_OK
Array[PackedInt32Array]([PackedInt32Array(1)])
Array[PackedInt32Array]([PackedInt32Array(2)])