mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
511 B
TypeScript
17 lines
511 B
TypeScript
//// [tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration7_es2017.ts] ////
|
|
|
|
//// [asyncFunctionDeclaration7_es2017.ts]
|
|
async function bar(): Promise<void> {
|
|
// 'await' here is an identifier, and not a yield expression.
|
|
async function foo(a = await): Promise<void> {
|
|
}
|
|
}
|
|
|
|
//// [asyncFunctionDeclaration7_es2017.js]
|
|
"use strict";
|
|
async function bar() {
|
|
// 'await' here is an identifier, and not a yield expression.
|
|
async function foo(a = await ) {
|
|
}
|
|
}
|