mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
609 B
Plaintext
14 lines
609 B
Plaintext
asyncArrowFunction7_es6.ts(3,24): error TS2524: 'await' expressions cannot be used in a parameter initializer.
|
|
asyncArrowFunction7_es6.ts(3,29): error TS1109: Expression expected.
|
|
|
|
|
|
==== asyncArrowFunction7_es6.ts (2 errors) ====
|
|
var bar = async (): Promise<void> => {
|
|
// 'await' here is an identifier, and not an await expression.
|
|
var foo = async (a = await): Promise<void> => {
|
|
~~~~~
|
|
!!! error TS2524: 'await' expressions cannot be used in a parameter initializer.
|
|
~
|
|
!!! error TS1109: Expression expected.
|
|
}
|
|
} |