unison/unison-src/transcripts/fix2344.md

23 lines
364 B
Markdown
Raw Permalink Normal View History

2021-08-26 23:02:16 +03:00
Checks a corner case with type checking involving destructuring binds.
The binds were causing some sequences of lets to be unnecessarily
recursive.
```ucm:hide
scratch/main> builtins.merge
2021-08-26 23:02:16 +03:00
```
```unison
unique ability Nate where
nate: (Boolean, Nat)
antiNate: ()
sneezy: (Nat -> {d} a) -> '{Nate,d} a
sneezy dee _ =
(_,_) = nate
antiNate
dee 1
```