TypeScript/tests/cases/fourslash/arrayConcatTypeCheck1.ts

28 lines
404 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path="fourslash.ts" />
//// a.concat(/*2*/"hello"/*1*/, 'world');
////
//// a.concat(/*3*/'Hello');
////
//// var b = new Array/*4*/<>();
//// b.concat('hello');
////
edit.disableFormatting();
2014-08-01 22:50:59 +02:00
goTo.marker('1');
2014-07-13 01:04:16 +02:00
edit.deleteAtCaret(9);
2014-08-01 22:50:59 +02:00
goTo.marker('3');
2014-07-13 01:04:16 +02:00
edit.deleteAtCaret(7);
2014-08-01 22:50:59 +02:00
goTo.marker('2');
2014-07-13 01:04:16 +02:00
edit.deleteAtCaret(7);
2014-08-01 22:50:59 +02:00
goTo.marker('4');
2014-07-13 01:04:16 +02:00
diagnostics.validateTypesAtPositions(43);