7 lines
199 B
TypeScript
7 lines
199 B
TypeScript
// @target: es2017
|
|
// @noEmitHelpers: true
|
|
async function bar(): Promise<void> {
|
|
// 'await' here is an identifier, and not a yield expression.
|
|
async function foo(a = await): Promise<void> {
|
|
}
|
|
} |