dynamic-representable-types.ts:7:7 - error SC2011: values of type '[number, (string | undefined)?]' have no static representation but run in the embedded dynamic engine, which this build does not include

  6 | const bare: any = 41;
  7 | const optTuple: [number, string?] = [1];
    |       ^~~~~~~~
  8 | console.log(arr.length, rec.width, fn(1), bare, optTuple.length);

  hint: build with --dynamic to run these values in the embedded engine (adds ~620KB to the binary), or restate the type inside the static surface (https://scriptc.dev/limitations describes the boundary)

dynamic-representable-types.ts:8:49 - error SC2004: uses of 'optTuple' inherit the blocker on its declaration

  7 | const optTuple: [number, string?] = [1];
  8 | console.log(arr.length, rec.width, fn(1), bare, optTuple.length);
    |                                                 ^~~~~~~~~~~~~~~
  9 | export const marker: number = 1;

  hint: the declaration of 'optTuple' did not compile — fix the diagnostic reported there and these sites clear with it