mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 00:09:33 +03:00
5efdecafc9
When constraining a recursive function like ``` f : _ -> {} f : \_ -> f {} ``` our first step is to solve the value type of `f` relative to its annotation. We have to be careful that the inference variable in the signature of `f` is not generalized until after the body of `f` is solved. Otherwise, we end up admitting polymorphic recursion. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |