Skip to content

Commit

Permalink
restore pattern match coverage test that accidentally wasn't testing …
Browse files Browse the repository at this point in the history
…the right thing before
  • Loading branch information
mitchellwrosen committed Aug 29, 2024
1 parent 66afce3 commit 64a0ce0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion unison-src/transcripts/pattern-match-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ result : '{e, Give T} r -> {e} r
result f = handle !f with cases
{ x } -> x
{ give _ -> resume } -> result resume
{ give A -> resume } -> result resume
{ give T.A -> resume } -> result resume
```

## Exhaustive ability reinterpretations are accepted
Expand Down
16 changes: 3 additions & 13 deletions unison-src/transcripts/pattern-match-coverage.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -1056,26 +1056,16 @@ result : '{e, Give T} r -> {e} r
result f = handle !f with cases
{ x } -> x
{ give _ -> resume } -> result resume
{ give A -> resume } -> result resume
{ give T.A -> resume } -> result resume
```

``` ucm
Loading changes detected in scratch.u.
I couldn't resolve any of these symbols:
10 | { give A -> resume } -> result resume
This case would be ignored because it's already covered by the preceding case(s):
10 | { give T.A -> resume } -> result resume
Symbol Suggestions
A SomeType.A
T.A
```
## Exhaustive ability reinterpretations are accepted
Expand Down

0 comments on commit 64a0ce0

Please sign in to comment.