mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
422 B
TypeScript
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;
|
|
});
|