swc/crates/swc_ecma_parser/tests/tsc/asyncFunctionDeclaration13_es5.ts

8 lines
171 B
TypeScript

// @target: ES5
// @lib: es5,es2015.promise
// @noEmitHelpers: true
async function foo(): Promise<void> {
// Legal to use 'await' in a type context.
var v: await;
}