mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-29 07:04:09 +08:00
Structural conversion lifts a function into a union's function arm only when cleanFuncAdaptable accepts the pair, and it refused every rest signature. A typed-rest function assigned to `((m: string) => void) | null`, an optional parameter of that type, or a `| undefined` binding therefore failed with SC2003. cleanFuncAdaptable now accepts the pairs the rest packing adapter serves, so these slots use the same adapter as a plain fixed-parameter slot. 6445 covers the nullable, optional and undefined slots, and 6445 and 6446 get their corpus costs.