Skip to content

Commit

Permalink
Distinct error type semantics in match patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
jclark committed Apr 26, 2020
1 parent 3dbe562 commit ceac9f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lang/proposals/distinct/distinct.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,6 @@ An error error type `error<R>` means that the detail record must belong to the t

```
readonly & record {| *R; (anydata|readonly)...; |}
```
```

In a match-statement, a error-match-pattern with a user-defined error type should match only if the shape of the value belongs to type.

0 comments on commit ceac9f6

Please sign in to comment.