Acknowledged
CIQQA-4862

Type checker issue with Array.size() in SDK 9.3.0

The below code fails to compile in SDK 9.3.0 but not in earlier versions with error: Cannot assign value '$.Toybox.Lang.Array<Null>' to member ':_childX'.

Is Array.size() typed as Null?


class Container {
    ...

    protected var _children as Array<Drawable>;
    protected var _childX as Array<Number>;  // X coordinates to draw fields at

    ...

    function initialize(contents as Array<Drawable>, ...) {
        _children = contents;
        ...
        _childX = new [_children.size()];
    }
}