unison/unison-src/transcripts/fix2334.md

21 lines
261 B
Markdown
Raw Normal View History

Tests an issue where pattern matching matrices involving built-in
types was discarding default cases in some branches.
```ucm:hide
2024-04-15 02:57:08 +03:00
.> builtins.merge
```
```unison
f = cases
0, 0 -> 0
_, 1 -> 2
1, _ -> 3
_, _ -> 1
> f 0 0
> f 1 0
> f 0 1
> f 1 1
```