mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
341 B
TypeScript
13 lines
341 B
TypeScript
//// [tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration9_es2017.ts] ////
|
|
|
|
//// [asyncFunctionDeclaration9_es2017.ts]
|
|
async function foo(): Promise<void> {
|
|
var v = { [await]: foo }
|
|
}
|
|
|
|
//// [asyncFunctionDeclaration9_es2017.js]
|
|
"use strict";
|
|
async function foo() {
|
|
var v = { [await ]: foo };
|
|
}
|