TypeScript/tests/cases/fourslash/incrementalParsingDynamicImport1.ts

17 lines
355 B
TypeScript
Raw Normal View History

2017-06-08 22:35:12 +02:00
/// <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();
2017-06-08 22:35:12 +02:00
//// })
//// /*1*/
verify.numberOfErrorsInCurrentFile(1);
2017-06-08 22:35:12 +02:00
goTo.marker("1");
edit.insert(" ");
verify.numberOfErrorsInCurrentFile(1);