TypeScript/tests/cases/conformance/externalModules/topLevelAwait.3.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

8 lines
201 B
TypeScript

// @target: esnext
// @module: esnext
// @filename: index.d.ts
// await keyword allowed as identifier in a declaration file
export {};
declare const await: any;
declare class C extends await {}