PackedByteArray
copied and converted to Array
without error when passed to a function with typed arguments
#89829
Labels
Tested versions
4.2.1.stable.arch_linux
System information
Godot v4.2.1.stable unknown - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Fri Mar 15 21:05:45 UTC 2024 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4060 (nvidia; 550.67) - Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz (8 Threads)
Issue description
If a function has an
Array
-typed param, passing aPackedByteArray
to it will not cause an error, and will silently convert the PBA to a normalArray
(and making it effectively passed by value).Steps to reproduce
Run the above code - there is no type error and
val
is not updated in_ready
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: