mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
467 B
TypeScript
18 lines
467 B
TypeScript
//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration13_es5.ts] ////
|
|
|
|
//// [asyncFunctionDeclaration13_es5.ts]
|
|
async function foo(): Promise<void> {
|
|
// Legal to use 'await' in a type context.
|
|
var v: await;
|
|
}
|
|
|
|
|
|
//// [asyncFunctionDeclaration13_es5.js]
|
|
"use strict";
|
|
function foo() {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
// Legal to use 'await' in a type context.
|
|
var v;
|
|
});
|
|
}
|