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