mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
add When pattern errors
This commit is contained in:
parent
2d1a1621c3
commit
7f999a06f3
7 changed files with 276 additions and 35 deletions
|
@ -652,12 +652,14 @@ impl ReportText {
|
|||
.into_iter()
|
||||
.map(|rep| rep.pretty(alloc, subs, home, src_lines, interns)),
|
||||
),
|
||||
Stack(report_texts) => alloc.intersperse(
|
||||
report_texts
|
||||
.into_iter()
|
||||
.map(|rep| (rep.pretty(alloc, subs, home, src_lines, interns))),
|
||||
alloc.hardline(),
|
||||
),
|
||||
Stack(report_texts) => alloc
|
||||
.intersperse(
|
||||
report_texts
|
||||
.into_iter()
|
||||
.map(|rep| (rep.pretty(alloc, subs, home, src_lines, interns))),
|
||||
alloc.hardline(),
|
||||
)
|
||||
.append(alloc.hardline()),
|
||||
Intersperse { separator, items } => alloc.intersperse(
|
||||
items
|
||||
.into_iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue