mock-fences.ts:12:15 - error SC2020: 'mock.fn of this function type' is part of the standard library types but has no scriptc lowering yet

  11 | 
  12 | const empty = mock.fn(); // no original function
     |               ^~~~~~~~~
  13 | empty();

  hint: mock functions lower for functions with fixed parameters, or a single rest array parameter

mock-fences.ts:16:1 - error SC2020: 'test.mock.method' is part of the standard library types but has no scriptc lowering yet

  15 | const obj = { value: () => 1 };
  16 | mock.method(obj, "value"); // method mocks
     | ^~~~~~~~~~~~~~~~~~~~~~~~~
  17 | mock.restoreAll();

  hint: mock.fn and t.mock.fn are the supported mock members

mock-fences.ts:17:1 - error SC2020: 'test.mock.restoreAll' is part of the standard library types but has no scriptc lowering yet

  16 | mock.method(obj, "value"); // method mocks
  17 | mock.restoreAll();
     | ^~~~~~~~~~~~~~~~~
  18 | mock.reset();

  hint: mock.fn and t.mock.fn are the supported mock members

mock-fences.ts:18:1 - error SC2020: 'test.mock.reset' is part of the standard library types but has no scriptc lowering yet

  17 | mock.restoreAll();
  18 | mock.reset();
     | ^~~~~~~~~~~~
  19 | 

  hint: mock.fn and t.mock.fn are the supported mock members

mock-fences.ts:21:3 - error SC2020: 'MockTracker.method' is part of the standard library types but has no scriptc lowering yet

  20 | test("tracker methods on t.mock", (t) => {
  21 |   t.mock.method(obj, "value");
     |   ^~~~~~~~~~~~~
  22 | });

  hint: the type checker sees the full standard library, but only the supported surface compiles (https://scriptc.dev/limitations)

mock-fences.ts:24:14 - error SC2020: 'mock.fn of a function returning 'number | string'' is part of the standard library types but has no scriptc lowering yet

  23 | 
  24 | const pick = mock.fn((flag: boolean): number | string => (flag ? 1 : "one")); // union without undefined
     |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25 | pick(true);

  hint: a union return type needs an undefined arm here (the calls log records undefined for calls that throw)