//// [asyncFunctionDeclaration7_es6.ts] async function bar(): Promise { // 'await' here is an identifier, and not a yield expression. async function foo(a = await): Promise { } } //// [asyncFunctionDeclaration7_es6.js] function bar() { return __awaiter(this, void 0, Promise, function* () { // 'await' here is an identifier, and not a yield expression. function foo(a = yield ) { return __awaiter(this, void 0, Promise, function* () { }); } }); }