mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-14 14:32:02 +08:00
An object literal whose context has no layout builds at its own type, but its nested literals still chose their own contextual layout, so the nested record could not convert into the field the outer literal had built, and SC2002 named the source literal's type as the expected one. A nested literal now builds at the layout the enclosing literal asked for when its contextual layout cannot reach it, and the outer coercion lifts the whole tree into the real destination. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>