mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-23 00:39:35 +03:00
414a320358
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. |
||
---|---|---|
.. | ||
docs | ||
src | ||
tests | ||
Cargo.toml |