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