TypeScript/tests/baselines/reference/asyncArrowFunction10_es6.js
2016-06-27 13:12:11 -07:00

14 lines
310 B
TypeScript

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