Closed anton-k closed 3 years ago
This program fails with type-check error
x = id y = id main = x y
Thouqh it can derive type for expression id id in the repl
id id
I think it's because
id = λa. a x = id y = id main = x y
Is not typable in simply typed λ-calculus.
This program fails with type-check error