roc/crates/compiler/constrain
Ayaz Hafiz 5efdecafc9
Constrain flex inference variables without re-generalization
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.
2022-11-24 10:05:25 -05:00
..
src Constrain flex inference variables without re-generalization 2022-11-24 10:05:25 -05:00
Cargo.toml updating rust package documentation 2022-11-03 20:00:06 +11:00