sets.ts:7:16 - error SC2020: 'new Set(values)' is part of the standard library types but has no scriptc lowering yet

  6 | // but keeps the fence: never silently an empty set.
  7 | const seeded = new Set(new Set(["a", "b"]));
    |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8 | 

  hint: construct the Set empty and add() each value — only a string, array, or fixed tuple of already-legal elements (numbers, strings, or identity references) seeds a Set

sets.ts:11:7 - error SC2009: values of type 'Set<boolean>' cannot be compiled: the Set shape is supported, but 'boolean' is outside its supported element domain (numbers, strings, identity references, or unions of identity references)

  10 | // element type.
  11 | const byFlag = new Set<boolean>();
     |       ^~~~~~
  12 | 

  hint: the outer shape is supported — the named component is the blocker; restate it inside the compilable set (number, string, boolean, arrays, Maps, Sets, RegExp, functions, classes, records, unions of those, and 'unknown')

sets.ts:11:16 - error SC1090: Set elements of type 'boolean' (Set elements must be numbers, strings, identity references, or unions of identity references) is not supported yet

  10 | // element type.
  11 | const byFlag = new Set<boolean>();
     |                ^~~~~~~~~~~~~~~~~~
  12 | 

sets.ts:17:17 - error SC2009: values of type 'Set<boolean>' cannot be compiled: the Set shape is supported, but 'boolean' is outside its supported element domain (numbers, strings, identity references, or unions of identity references)

  16 | // Set-typed slots elsewhere report the ordinary unsupported-type diagnostic.
  17 | function useBad(s: Set<boolean>): number {
     |                 ^
  18 |   return s.size;

  hint: the outer shape is supported — the named component is the blocker; restate it inside the compilable set (number, string, boolean, arrays, Maps, Sets, RegExp, functions, classes, records, unions of those, and 'unknown')

sets.ts:27:7 - error SC2009: values of type 'Set<string>[]' cannot be compiled: the array shape is supported, but 'Set<string>' elements have no array representation yet

  26 | // Sets as array elements: ScrArr has no set element kind.
  27 | const rows: Set<string>[] = [];
     |       ^~~~
  28 | 

  hint: the outer shape is supported — the named component is the blocker; restate it inside the compilable set (number, string, boolean, arrays, Maps, Sets, RegExp, functions, classes, records, unions of those, and 'unknown')

sets.ts:32:28 - error SC1090: JSON.stringify of 'Set<string>' values (only number, string, boolean, records, arrays, unions of those, and 'unknown' stringify) are not supported yet

  31 | const s = new Set<string>();
  32 | console.log(JSON.stringify(s));
     |                            ^
  33 | 

sets.ts:35:15 - error SC1090: Set methods as values (call 'add' directly) are not supported yet

  34 | // Set methods have no bound-value form — call them directly.
  35 | const adder = s.add;
     |               ^~~~~
  36 | 

sets.ts:39:1 - error SC2004: uses of 'useBad' inherit the blocker on its declaration

  38 | // them relevant; these references are what makes them count.
  39 | useBad(new Set<boolean>());
     | ^~~~~~
  40 | maybeSet(true);

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