mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
9 lines
287 B
TypeScript
9 lines
287 B
TypeScript
// A function returning ITSELF has a type with no structural floor —
|
|
// mapType's depth guard answers unmappable instead of overflowing the stack
|
|
// (invariant signature 15), and the uses fence by name.
|
|
function somefn() {
|
|
return somefn;
|
|
}
|
|
const g = somefn();
|
|
console.log(typeof g);
|