79787144

Date: 2025-10-10 08:48:24
Score: 0.5
Natty:
Report link

this correctly type checks and has identical behavior:

let x = 10;
const obj = ((function Y<B>(a:(_:() => B) => () => B): () => B {
    function Y1(b: typeof Y2): () => B {
        return b(b);
    }
    function Y2(c: typeof Y2): () => B {
        return a(() => c(c)());
    }
    return Y1(Y2);
})((rec: () => {}) => function() {
  if(--x) return rec();
  return {};
}))();
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bobby Morelli