TypeScript/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration7_es2017.ts
2016-10-12 21:58:25 +02:00

7 lines
199 B
TypeScript

// @target: es2017
// @noEmitHelpers: true
async function bar(): Promise<void> {
// 'await' here is an identifier, and not a yield expression.
async function foo(a = await): Promise<void> {
}
}