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

16 lines
422 B
TypeScript

//// [tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction10_es6.ts] ////
//// [asyncArrowFunction10_es6.ts]
var foo = async (): Promise<void> => {
// Legal to use 'await' in a type context.
var v: await;
}
//// [asyncArrowFunction10_es6.js]
"use strict";
var foo = () => __awaiter(void 0, void 0, void 0, function* () {
// Legal to use 'await' in a type context.
var v;
});