mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
6 lines
533 B
Plaintext
6 lines
533 B
Plaintext
function-forms.ts:38:3 - error SC1090: functions with optional or defaulted parameters as values, except where the target type spells the completed signature with required parameters (a '(x?: T) => R' function flows into a '(x: T | undefined) => R' slot, and a package/'any' slot takes any signature that can cross the island boundary; otherwise call the function directly) are not supported yet
|
|
|
|
37 | function outer(): number {
|
|
38 | function inner(n = 2): number {
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
39 | return n; |