Files
tsgo/testdata/baselines/reference/submodule/conformance/asyncArrowFunction7_es6.js

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 ) {
});
});