Closed felixangell closed 6 years ago
Funnily enough this happens for the opposite of why I initially thought:
Return statements are not handled in type in type inference, if they were it would fail too. Because we do handle variables in the type inference, we can't actually find the function (for some reason) in the current type environment.
Fixed
This runs fine:
However this does not:
This is the error: