You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a scalar type is casted to an array, the result is [scalar].
However for object type, the convection of the result after array cast is an array of properties. So an empty array is expected. This is demonstrated in the repro with DateTime object.
This issue should be tested by creating object for all declared classes and after casting them to array, no element must be of the same reference. (I came to this issue when I was expanding object to properties using array cast)
The text was updated successfully, but these errors were encountered:
Description
repro: https://3v4l.org/fQ0ep
Convection:
When a
scalar
type is casted to an array, the result is[scalar]
.However for
object
type, the convection of the result after array cast is an array of properties. So an empty array is expected. This is demonstrated in the repro withDateTime
object.This issue should be tested by creating object for all declared classes and after casting them to array, no element must be of the same reference. (I came to this issue when I was expanding object to properties using array cast)
The text was updated successfully, but these errors were encountered: