mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
459 B
Plaintext
11 lines
459 B
Plaintext
FunctionDeclaration10_es6.ts(1,20): error TS2523: 'yield' expressions cannot be used in a parameter initializer.
|
|
FunctionDeclaration10_es6.ts(1,26): error TS1005: ',' expected.
|
|
|
|
|
|
==== FunctionDeclaration10_es6.ts (2 errors) ====
|
|
function * foo(a = yield => yield) {
|
|
~~~~~
|
|
!!! error TS2523: 'yield' expressions cannot be used in a parameter initializer.
|
|
~~
|
|
!!! error TS1005: ',' expected.
|
|
} |