Open Fuco1 opened 4 years ago
If I have a higher-level function foo with type (Bool -> Int) -> Int implemented as
foo
(Bool -> Int) -> Int
(foo (lambda (x) 1))
it should derive that x must be of type Bool.
x
Bool
If I have a higher-level function
foo
with type(Bool -> Int) -> Int
implemented asit should derive that
x
must be of typeBool
.