1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-02 10:47:32 +03:00
juvix/test/Compilation
Jan Mas Rovira 200daad1dc
Fix bug in ComputeTypeInfo for let (#3158)
- Fixes #3030 

The `ComputeTypeInfo` transformation was incorrectly assuming that the
type of the body couldn't refer to the let item. When inferring the type
of a let, we now inline the let item(s) into the type of the body.

```
NLet Let {..} ->
   let bodyTy = Info.getNodeType _letBody
   in subst (_letItem ^. letItemValue) bodyTy
```
2024-11-12 16:44:25 +01:00
..
Base.hs Refactor pipeline functions for tests (#2864) 2024-06-28 12:15:51 +02:00
Negative.hs Detect constant side conditions in matches (#3133) 2024-11-01 09:50:19 +00:00
Positive.hs Fix bug in ComputeTypeInfo for let (#3158) 2024-11-12 16:44:25 +01:00