24 lines
989 B
Text
24 lines
989 B
Text
|
=== tests/cases/compiler/arrayConcat2.ts ===
|
||
|
var a: string[] = [];
|
||
|
>a : Symbol(a, Decl(arrayConcat2.ts, 0, 3))
|
||
|
|
||
|
a.concat("hello", 'world');
|
||
|
>a.concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
||
|
>a : Symbol(a, Decl(arrayConcat2.ts, 0, 3))
|
||
|
>concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
||
|
|
||
|
a.concat('Hello');
|
||
|
>a.concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
||
|
>a : Symbol(a, Decl(arrayConcat2.ts, 0, 3))
|
||
|
>concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
||
|
|
||
|
var b = new Array<string>();
|
||
|
>b : Symbol(b, Decl(arrayConcat2.ts, 5, 3))
|
||
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
||
|
|
||
|
b.concat('hello');
|
||
|
>b.concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
||
|
>b : Symbol(b, Decl(arrayConcat2.ts, 5, 3))
|
||
|
>concat : Symbol(Array.concat, Decl(lib.d.ts, 1025, 13), Decl(lib.d.ts, 1030, 46))
|
||
|
|