mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
654 B
TypeScript
21 lines
654 B
TypeScript
//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts] ////
|
|
|
|
//// [asyncFunctionDeclaration7_es5.ts]
|
|
async function bar(): Promise<void> {
|
|
// 'await' here is an identifier, and not a yield expression.
|
|
async function foo(a = await): Promise<void> {
|
|
}
|
|
}
|
|
|
|
//// [asyncFunctionDeclaration7_es5.js]
|
|
"use strict";
|
|
function bar() {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
// 'await' here is an identifier, and not a yield expression.
|
|
function foo() {
|
|
return __awaiter(this, arguments, void 0, function* (a = yield ) {
|
|
});
|
|
}
|
|
});
|
|
}
|