unison/unison-src/transcripts/fix2334.md
2024-06-25 11:11:07 -07:00

272 B

Tests an issue where pattern matching matrices involving built-in types was discarding default cases in some branches.

scratch/main> builtins.merge
f = cases
  0, 0 -> 0
  _, 1 -> 2
  1, _ -> 3
  _, _ -> 1

> f 0 0
> f 1 0
> f 0 1
> f 1 1