mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
340 B
TypeScript
16 lines
340 B
TypeScript
//// [tests/cases/compiler/awaitCallExpressionInSyncFunction.ts] ////
|
|
|
|
//// [awaitCallExpressionInSyncFunction.ts]
|
|
function foo() {
|
|
const foo = await(Promise.resolve(1));
|
|
return foo;
|
|
}
|
|
|
|
|
|
//// [awaitCallExpressionInSyncFunction.js]
|
|
"use strict";
|
|
function foo() {
|
|
const foo = await(Promise.resolve(1));
|
|
return foo;
|
|
}
|