mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-20 05:40:17 +08:00
7 lines
294 B
TypeScript
7 lines
294 B
TypeScript
// `1e999` as a type crosses the API as +Inf, which tsgo cannot JSON-marshal
|
|
// (upstream signature 03): the collection-side panic fence defers the
|
|
// SC0004 under the declaration like any collection fence.
|
|
type A = 1e999;
|
|
export function f(): A { throw new Error("x"); }
|
|
export const m = f();
|