Add incremental tests
This commit is contained in:
parent
7121891921
commit
963a500c8e
1 changed files with 17 additions and 0 deletions
17
tests/cases/fourslash/incrementalParsingDynamicImport1.ts
Normal file
17
tests/cases/fourslash/incrementalParsingDynamicImport1.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
// @lib: es6
|
||||
|
||||
// @Filename: ./foo.ts
|
||||
//// export function bar() { return 1; }
|
||||
|
||||
//// var x1 = import("./foo");
|
||||
//// x1.then(foo => {
|
||||
//// var s: string = foo.bar();
|
||||
//// })
|
||||
//// /*1*/
|
||||
|
||||
verify.numberOfErrorsInCurrentFile(1);
|
||||
goTo.marker("1");
|
||||
edit.insert(" ");
|
||||
verify.numberOfErrorsInCurrentFile(1);
|
Loading…
Reference in a new issue