mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-26 13:52:15 +00:00
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 | ||