comptime.ts:5:33 - error SC1090: comptime callbacks referencing outer bindings ('limit' — the callback runs at compile time in an isolated context and must be self-contained) are not supported yet

  4 | const limit = 4;
  5 | const captured = comptime(() => limit * 2);
    |                                 ^~~~~
  6 | 

comptime.ts:10:25 - error SC1090: comptime arguments other than inline function literals (write the callback directly in the call: comptime(() => ...)) are not supported yet

   9 | }
  10 | const viaRef = comptime(make);
     |                         ^~~~
  11 | 

comptime.ts:12:25 - error SC1110: comptime evaluation failed: the callback threw: boom at compile time

  11 | 
  12 | const thrown = comptime((): number => {
     |                         ^~~~~~~~~~~~~~~
  13 |   throw "boom at compile time";

comptime.ts:16:22 - error SC1110: comptime evaluation failed: expected 'number' at $, got NaN (only finite numbers can be written as literals)

  15 | 
  16 | const nan = comptime(() => 0 / 0);
     |                      ^~~~~~~~~~~
  17 | 

comptime.ts:18:31 - error SC1090: comptime calls inside comptime callbacks (the callback already runs at compile time — compute the value directly) are not supported yet

  17 | 
  18 | const nested = comptime(() => comptime(() => 1));
     |                               ^~~~~~~~
  19 | 

comptime.ts:20:29 - error SC1090: async or generator comptime callbacks are not supported yet

  19 | 
  20 | const eventually = comptime(async () => 1);
     |                             ^~~~~~~~~~~~~
  21 | 

comptime.ts:22:23 - error SC1110: comptime evaluation failed: expected 'string' at $, got a number

  21 | 
  22 | const lied = comptime(() => 1 as unknown as string);
     |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23 | 

comptime.ts:29:22 - error SC1090: baking comptime results of type '{ next: null | ...; value: number }' into the binary (number, string, boolean, and arrays, records and unions of those lower to literals; a record or union type reachable from itself does not) is not supported yet

  28 | }
  29 | const chain: Chain = comptime(() => ({ value: 1, next: null }) as Chain);
     |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30 | 

comptime.ts:33:20 - error SC1090: baking comptime results of type '(...)[] | number' into the binary (number, string, boolean, and arrays, records and unions of those lower to literals; a record or union type reachable from itself does not) is not supported yet

  32 | type Tree = number | Tree[];
  33 | const tree: Tree = comptime((): Tree => [1, [2, [3]]]);
     |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34 | 

comptime.ts:36:22 - error SC1110: comptime evaluation failed: evaluation exceeded the 256 MB compile-time memory limit

  35 | // The evaluator's limits and refusals are build errors that name them.
  36 | const hog = comptime((): number => {
     |                      ^~~~~~~~~~~~~~~
  37 |   const all: number[][] = [];

comptime.ts:41:24 - error SC1110: comptime evaluation failed: the callback left promise reactions pending, and they never run at compile time

  40 | 
  41 | const later = comptime(() => {
     |                        ^~~~~~~
  42 |   Promise.resolve().then(() => {});

comptime.ts:46:23 - error SC1110: comptime evaluation failed: the callback left a rejected promise unhandled

  45 | 
  46 | const lost = comptime(() => {
     |                       ^~~~~~~
  47 |   Promise.reject(new Error("nobody listens"));

comptime.ts:51:23 - error SC1110: comptime evaluation failed: the result contains itself

  50 | 
  51 | const knot = comptime((): { n: number } => {
     |                       ^~~~~~~~~~~~~~~~~~~~~~
  52 |   const a: any = { n: 1 };

comptime.ts:57:26 - error SC1110: comptime evaluation failed: the callback threw: Number.prototype.toLocaleString is not available at compile time: its result depends on locale data

  56 | 
  57 | const grouped = comptime(() => (1234567.891).toLocaleString());
     |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  58 | 

comptime.ts:59:27 - error SC1110: comptime evaluation failed: the callback threw: Number.prototype.toString with a radix other than 10 is available at compile time only for safe integers

  58 | 
  59 | const fraction = comptime(() => (0.5).toString(3));
     |                           ^~~~~~~~~~~~~~~~~~~~~~~
  60 | 

comptime.ts:61:26 - error SC1110: comptime evaluation failed: the callback threw: null

  60 | 
  61 | const nothing = comptime((): number => {
     |                          ^~~~~~~~~~~~~~~
  62 |   throw null;

comptime.ts:65:25 - error SC1110: comptime evaluation failed: expected 'number' at $[1], got undefined

  64 | 
  65 | const sparse = comptime(() => [1, , 3] as number[]);
     |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
  66 | 