Acknowledged

Regression - arrays are totally broken (SDK 4.1.2)

var arr = ["A", "B"];
arr.toString();

Gives

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Float/Long/Double/Char, given Number/Array

var arr = ["A", "B"];
for (var i = 0; i < arr.size(); i++) {
    arr[i];
}

Gives

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Float/Boolean/Long/Double, given Object

var arr = new Lang.Array();
arr.add("A");

Gives

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Array, given String

SDK version 4.1.2.

Parents
  • What happened between 4.1.5 and 4.1.7? It looks to me like maybe Monkey Types weren't implemented properly before and now they are?

    Regardless, it has broken almost every source file that I have written up until now, IMO that's worthy of *at least* a minor version number update, not a bugfix.

Comment
  • What happened between 4.1.5 and 4.1.7? It looks to me like maybe Monkey Types weren't implemented properly before and now they are?

    Regardless, it has broken almost every source file that I have written up until now, IMO that's worthy of *at least* a minor version number update, not a bugfix.

Children
No Data