TypeScript/tests/cases/fourslash/incrementalParsingTopLevelAwait.2.ts
Ron Buckton fe33e61823
Reparse top level 'await' in modules (#39084)
* Reparse top-level 'await' in modules

* Add more tests and additional diagnostics

* One more incremental parse test
2020-06-18 23:43:18 -07:00

15 lines
327 B
TypeScript

/// <reference path="fourslash.ts"/>
// @target: esnext
// @module: esnext
// @Filename: ./foo.ts
//// export {};
//// /*1*/
verify.numberOfErrorsInCurrentFile(0);
goTo.marker("1");
edit.insert("await(1);");
verify.numberOfErrorsInCurrentFile(0);
edit.replaceLine(1, "");
verify.numberOfErrorsInCurrentFile(0);