mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
623 B
Plaintext
15 lines
623 B
Plaintext
bar.ts(1,35): error TS2524: 'await' expressions cannot be used in a parameter initializer.
|
|
bar.ts(4,31): error TS2523: 'yield' expressions cannot be used in a parameter initializer.
|
|
|
|
|
|
==== bar.ts (2 errors) ====
|
|
export async function foo({ foo = await import("./bar") }) {
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2524: 'await' expressions cannot be used in a parameter initializer.
|
|
}
|
|
|
|
export function* foo2({ foo = yield "a" }) {
|
|
~~~~~
|
|
!!! error TS2523: 'yield' expressions cannot be used in a parameter initializer.
|
|
}
|
|
|