mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
1.3 KiB
Plaintext
24 lines
1.3 KiB
Plaintext
asyncArrowFunction9_es2017.ts(1,11): error TS2304: Cannot find name 'async'.
|
|
asyncArrowFunction9_es2017.ts(1,18): error TS2304: Cannot find name 'a'.
|
|
asyncArrowFunction9_es2017.ts(1,37): error TS1005: ',' expected.
|
|
asyncArrowFunction9_es2017.ts(1,39): error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'PromiseConstructor', but here has type 'any'.
|
|
asyncArrowFunction9_es2017.ts(1,46): error TS1005: ',' expected.
|
|
asyncArrowFunction9_es2017.ts(1,53): error TS1109: Expression expected.
|
|
|
|
|
|
==== asyncArrowFunction9_es2017.ts (6 errors) ====
|
|
var foo = async (a = await => await): Promise<void> => {
|
|
~~~~~
|
|
!!! error TS2304: Cannot find name 'async'.
|
|
~
|
|
!!! error TS2304: Cannot find name 'a'.
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~~~~~~~
|
|
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'Promise' must be of type 'PromiseConstructor', but here has type 'any'.
|
|
!!! related TS6203 lib.es2015.promise.d.ts:--:--: 'Promise' was also declared here.
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~~
|
|
!!! error TS1109: Expression expected.
|
|
} |