2015-05-07 02:33:58 +02:00
|
|
|
//// [asyncFunctionDeclaration7_es6.ts]
|
|
|
|
async function bar(): Promise<void> {
|
|
|
|
// 'await' here is an identifier, and not a yield expression.
|
|
|
|
async function foo(a = await): Promise<void> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [asyncFunctionDeclaration7_es6.js]
|
|
|
|
function bar() {
|
2015-06-20 01:01:12 +02:00
|
|
|
return __awaiter(this, void 0, Promise, function* () {
|
2015-05-07 02:33:58 +02:00
|
|
|
// 'await' here is an identifier, and not a yield expression.
|
2015-06-16 22:25:46 +02:00
|
|
|
function foo(a = yield ) {
|
2015-06-20 01:01:12 +02:00
|
|
|
return __awaiter(this, void 0, Promise, function* () {
|
2015-06-18 20:31:03 +02:00
|
|
|
});
|
2015-05-07 02:33:58 +02:00
|
|
|
}
|
2015-06-18 20:31:03 +02:00
|
|
|
});
|
2015-05-07 02:33:58 +02:00
|
|
|
}
|