TypeScript/tests/baselines/reference/asyncFunctionDeclaration13_es6.js

15 lines
349 B
TypeScript
Raw Normal View History

2015-05-07 02:33:58 +02:00
//// [asyncFunctionDeclaration13_es6.ts]
async function foo(): Promise<void> {
// Legal to use 'await' in a type context.
var v: await;
}
//// [asyncFunctionDeclaration13_es6.js]
function foo() {
return __awaiter(this, void 0, Promise, function* () {
2015-05-07 02:33:58 +02:00
// Legal to use 'await' in a type context.
var v;
2015-06-18 20:31:03 +02:00
});
2015-05-07 02:33:58 +02:00
}