mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
342 B
TypeScript
20 lines
342 B
TypeScript
//// [tests/cases/compiler/arrayConcat2.ts] ////
|
|
|
|
//// [arrayConcat2.ts]
|
|
var a: string[] = [];
|
|
a.concat("hello", 'world');
|
|
|
|
a.concat('Hello');
|
|
|
|
var b = new Array<string>();
|
|
b.concat('hello');
|
|
|
|
|
|
//// [arrayConcat2.js]
|
|
"use strict";
|
|
var a = [];
|
|
a.concat("hello", 'world');
|
|
a.concat('Hello');
|
|
var b = new Array();
|
|
b.concat('hello');
|