/// var a_bool: Vector.<Boolean> = new <Boolean>[1,2,3,4];
/// a_bool[0] = 1;
/// a_bool[1] = NaN;
/// a_bool[2] = "false";
/// a_bool[3] = true;
true
false
true
true
/// var a_legacy: Vector.<Object> = new <Object>[];
/// a_legacy.length = 2;
null
null
/// a_legacy[0] = new LegacyClass();
/// a_legacy[1] = new LegacySubclass();
[object Object]
[object Object]
/// var a_class: Vector.<Superclass> = new <Superclass>[];
/// a_class.length = 2;
null
null
/// a_class[0] = new Superclass();
/// a_class[1] = new Subclass();
[object Superclass]
[object Subclass]
/// var a_int: Vector.<int> = new <int>[1,2];
/// a_int[0] = "5";
/// a_int[1] = "not a number";
5
0
/// var a_number: Vector.<Number> = new <Number>[1,2,3,4];
/// a_number[0] = "5";
/// a_number[1] = "NaN";
/// a_number[2] = -5;
/// a_number[3] = true;
5
NaN
-5
1
/// var a_string: Vector.<String> = new <String>[1,2,3,4];
/// a_string[0] = 5;
/// a_string[1] = NaN;
/// a_string[2] = "actually imma string";
/// a_string[3] = true;
5
NaN
actually imma string
true
/// var a_uint: Vector.<uint> = new <uint>[1,2,3,4];
/// a_uint[0] = "5";
/// a_uint[1] = "not a number";
/// a_uint[2] = -5;
/// a_uint[3] = false;
5
0
4294967291
0
/// var a_vector: Vector.<int> = new <int>[1,2];
/// var b_vector: Vector.<int> = new <int>[5,16];
/// var c_vector: Vector.<Vector.<int>> = new <Vector.<int>>[];
/// c_vector[0] = a_vector;
/// c_vector[1] = b_vector;
/// (contents of c_vector...)
1,2
5,16
Caught error: TypeError: Error #1034: Type Coercion failed: cannot convert __AS3__.vec::Vector.<Test.as$38::MyObject>@ADDRESS to __AS3__.vec.Vector.<int>.
