mock-fences.ts:18:17 - error SC2020: 'mock.fn() of a function returning 'number'' is part of the standard library types but has no scriptc lowering yet

  17 | 
  18 | const counted = mock.fn<() => number>(); // no original, returns number
     |                 ^~~~~~~~~~~~~~~~~~~~~~~
  19 | counted();

  hint: mock.fn() without an original returns undefined: pass an original, or use a function type whose return type includes undefined

mock-fences.ts:31:13 - error SC2020: 'mock.method on 'Counter'' is part of the standard library types but has no scriptc lowering yet

  30 | }
  31 | mock.method(new Counter(), "count"); // class instance
     |             ^~~~~~~~~~~~~
  32 | mock.method(console, "log"); // builtin object

  hint: mock.method lowers for objects whose type maps to a record (object literals and interface-typed objects) and a function-valued field named by a string literal

mock-fences.ts:32:13 - error SC2020: 'mock.method on this object' is part of the standard library types but has no scriptc lowering yet

  31 | mock.method(new Counter(), "count"); // class instance
  32 | mock.method(console, "log"); // builtin object
     |             ^~~~~~~
  33 | mock.method(obj, "value", { times: 1 }); // options

  hint: mock.method lowers for objects whose type maps to a record (object literals and interface-typed objects) and a function-valued field named by a string literal

mock-fences.ts:33:27 - error SC2020: 'mock.method with an options object' is part of the standard library types but has no scriptc lowering yet

  32 | mock.method(console, "log"); // builtin object
  33 | mock.method(obj, "value", { times: 1 }); // options
     |                           ^~~~~~~~~~~~
  34 | const other = mock.method(obj, "value", () => "one"); // implementation of another type

  hint: mock options (times, getter and setter) have no lowering

mock-fences.ts:34:41 - error SC2020: 'mock.method with an implementation of another type' is part of the standard library types but has no scriptc lowering yet

  33 | mock.method(obj, "value", { times: 1 }); // options
  34 | const other = mock.method(obj, "value", () => "one"); // implementation of another type
     |                                         ^~~~~~~~~~~
  35 | other();

  hint: give the implementation the method's parameter and return types, or discard the result

mock-fences.ts:39:31 - error SC2020: 't.mock.method with an options object' is part of the standard library types but has no scriptc lowering yet

  38 |   t.mock.method(obj, "value"); // lowers
  39 |   t.mock.method(obj, "value", { times: 2 }); // options
     |                               ^~~~~~~~~~~~
  40 | });

  hint: mock options (times, getter and setter) have no lowering

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

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

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