mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
can for normal (no-list) as
This commit is contained in:
parent
06cfdd71cc
commit
905341d849
9 changed files with 98 additions and 19 deletions
|
@ -431,6 +431,9 @@ fn pattern<'a>(
|
|||
| AbilityMemberSpecialization {
|
||||
specializes: sym, ..
|
||||
} => pp_sym(c, f, *sym),
|
||||
As(subpattern, symbol) => pattern(c, prec, f, &subpattern.value)
|
||||
.append(f.text(" as "))
|
||||
.append(pp_sym(c, f, *symbol)),
|
||||
AppliedTag {
|
||||
tag_name,
|
||||
arguments,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue