checker-panic-tuple.ts:4:1 - error SC0004: the TypeScript checker crashed answering a query here (an upstream typescript-go bug): panic: interface conversion: checker.TypeData is *checker.TypeReference, not *checker.TupleType

  3 | // source-anchored SC0004 — a failed compile, never a crashed CLI.
  4 | const a = ''.match(/x/) || [];
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5 | console.log(a.length);

checker-panic-tuple.ts:5:13 - error SC1090: reading 'length' on a union-typed value (every arm must be an object/record with a same-typed field 'length'; narrow first: check a discriminant field, or compare with '!== undefined'/'!== null' for unit arms) is not supported yet

  4 | const a = ''.match(/x/) || [];
  5 | console.log(a.length);
    |             ^~~~~~~~
  6 | 