unison/unison-src/transcripts/fix2344.output.md

33 lines
627 B
Markdown
Raw Permalink Normal View History

2021-08-31 03:50:14 +03:00
Checks a corner case with type checking involving destructuring binds.
The binds were causing some sequences of lets to be unnecessarily
recursive.
``` unison
2021-08-31 03:50:14 +03:00
unique ability Nate where
nate: (Boolean, Nat)
antiNate: ()
sneezy: (Nat -> {d} a) -> '{Nate,d} a
sneezy dee _ =
(_,_) = nate
antiNate
dee 1
```
``` ucm
2021-08-31 03:50:14 +03:00
Loading changes detected in scratch.u.
2021-08-31 03:50:14 +03:00
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
ability Nate
2021-08-31 03:50:14 +03:00
sneezy : (Nat ->{d} a) -> '{d, Nate} a
```