Skip to content

cases block needs surrounding parens in Doc only #5983

@aryairani

Description

@aryairani

Describe and demonstrate the bug

> builtins.mergeio

  Done.
x.doc = {{
```
cases x -> 1 -- fails
```
}}
  Loading changes detected in scratch.u.

  I got confused here:



  I was surprised to find an end of input here.
x.doc = {{
```
(cases x -> 1) -- ok
```
}}
  Loading changes detected in scratch.u.

  + x.doc : Doc2

  Run `update` to apply these changes to your codebase.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • unison version: 3c5e994'
  • OS/Architecture: macOS 26.0.1 arm

Additional context
is this related to #5473 ?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions