retired-engine-2083-destructuring-island-decl.ts:9:5 - error SC2011: destructuring on 'any'-typed values cannot compile statically

   8 | const a: any = [1, "two", true, 4, 5];
   9 | var [x, , y, ...rest] = a;
     |     ^~~~~~~~~~~~~~~~~~~~~
  10 | console.log(`${x} ${y} ${rest.length} ${rest[0]} ${rest[1]}`);

  hint: use a supported typed operation, or 'unknown' with a checked cast ('x as T')

retired-engine-2083-destructuring-island-decl.ts:12:7 - error SC2011: destructuring on 'any'-typed values cannot compile statically

  11 | const o: any = { p: 1, q: { r: "deep" } };
  12 | const { p, q: { r } } = o;
     |       ^~~~~~~~~~~~~~~~~~~
  13 | console.log(`${p} ${r}`);

  hint: use a supported typed operation, or 'unknown' with a checked cast ('x as T')

retired-engine-2083-destructuring-island-decl.ts:14:7 - error SC2011: destructuring on 'any'-typed values cannot compile statically

  13 | console.log(`${p} ${r}`);
  14 | const { missing = 42 } = o;
     |       ^~~~~~~~~~~~~~~~~~~~
  15 | console.log(`${missing}`);

  hint: use a supported typed operation, or 'unknown' with a checked cast ('x as T')

retired-engine-2083-destructuring-island-decl.ts:16:7 - error SC2011: destructuring on 'any'-typed values cannot compile statically

  15 | console.log(`${missing}`);
  16 | const { p: p2 = 9, ...others } = o;
     |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  17 | console.log(`${p2} ${others.q.r}`);

  hint: use a supported typed operation, or 'unknown' with a checked cast ('x as T')

retired-engine-2083-destructuring-island-decl.ts:17:22 - error SC2004: uses of 'others' inherit the blocker on its declaration

  16 | const { p: p2 = 9, ...others } = o;
  17 | console.log(`${p2} ${others.q.r}`);
     |                      ^~~~~~~~~~
  18 | var [] = [1, 2] as any;

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

retired-engine-2083-destructuring-island-decl.ts:19:5 - error SC2011: destructuring on 'any'-typed values cannot compile statically

  18 | var [] = [1, 2] as any;
  19 | var {} = o;
     |     ^~~~~~
  20 | console.log("empties ok");

  hint: use a supported typed operation, or 'unknown' with a checked cast ('x as T')

retired-engine-2083-destructuring-island-decl.ts:22:11 - error SC2011: destructuring on 'any'-typed values cannot compile statically

  21 | const u: any = undefined;
  22 | try { var {} = u; } catch (e) { console.log("obj-undef throws"); }
     |           ^~~~~~
  23 | try { var [] = 0 as any; } catch (e) { console.log("arr-num throws"); }

  hint: use a supported typed operation, or 'unknown' with a checked cast ('x as T')

retired-engine-2083-destructuring-island-decl.ts:23:11 - error SC2011: destructuring on 'any'-typed values cannot compile statically

  22 | try { var {} = u; } catch (e) { console.log("obj-undef throws"); }
  23 | try { var [] = 0 as any; } catch (e) { console.log("arr-num throws"); }
     |           ^~~~~~~~~~~~~
  24 | const [d1 = 10, d2 = 20] = [] as any;

  hint: use a supported typed operation, or 'unknown' with a checked cast ('x as T')

retired-engine-2083-destructuring-island-decl.ts:24:8 - error SC2011: values of type 'any' have no native representation at this site

  23 | try { var [] = 0 as any; } catch (e) { console.log("arr-num throws"); }
  24 | const [d1 = 10, d2 = 20] = [] as any;
     |        ^~
  25 | console.log(`${d1} ${d2}`);

  hint: use a supported typed value, or 'unknown' with a checked cast ('x as T')