unison/unison-src/tests/pattern-weirdness.u
2020-02-07 18:59:37 -08:00

17 lines
268 B
Plaintext

go =
a = 1
match "" with
pos | false -> a
_ -> a
> go
-- 7 | > go
-- ⧩
-- ""
-- should be 1, not ""
-- seems to have something to do with the wildcard + guard, as changing or
-- or deleting that line makes the problem go away