1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
=== tests/cases/compiler/arrayConstructors1.ts ===
var x: string[];
>x : Symbol(x, Decl(arrayConstructors1.ts, 0, 3))
x = new Array(1);
>x : Symbol(x, Decl(arrayConstructors1.ts, 0, 3))
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
x = new Array('hi', 'bye');
>x : Symbol(x, Decl(arrayConstructors1.ts, 0, 3))
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
x = new Array<string>('hi', 'bye');
>x : Symbol(x, Decl(arrayConstructors1.ts, 0, 3))
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
var y: number[];
>y : Symbol(y, Decl(arrayConstructors1.ts, 5, 3))
y = new Array(1);
>y : Symbol(y, Decl(arrayConstructors1.ts, 5, 3))
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
y = new Array(1,2);
>y : Symbol(y, Decl(arrayConstructors1.ts, 5, 3))
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
y = new Array<number>(1, 2);
>y : Symbol(y, Decl(arrayConstructors1.ts, 5, 3))
>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|