roc/crates/compiler/constrain/src
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
..
builtins.rs Remove unused functions 2022-11-11 21:16:24 -06:00
expr.rs Constrain flex inference variables without re-generalization 2022-11-24 10:05:25 -05:00
lib.rs correct formatting and removed duplicate image 2022-11-03 20:02:10 +11:00
module.rs [skip-ci] Fix borrow issues in constraining 2022-11-11 21:16:22 -06:00
pattern.rs Remove Cells from Types 2022-11-15 09:00:16 -06:00