TypeScript/tests/cases/fourslash/arrayConcatTypeCheck0.ts
2014-08-01 14:36:18 -07:00

18 lines
292 B
TypeScript

/// <reference path="fourslash.ts" />
//// var a = [];
//// a.concat("hello"/*1*/);
////
//// a.concat('Hello');
////
//// var b = new Array();
//// b.concat('hello');
////
edit.disableFormatting();
goTo.marker('1');
edit.insert(", 'world'");
diagnostics.validateTypesAtPositions(78);