mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
1.9 KiB
Plaintext
34 lines
1.9 KiB
Plaintext
//// [tests/cases/compiler/arrayConstructors1.ts] ////
|
|
|
|
=== 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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.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, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
|