mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
Fix bug with when not passing down options
This commit is contained in:
parent
a0de21d7d7
commit
0cc16b0d2c
5 changed files with 86 additions and 46 deletions
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
when 2 is
|
||||
8 ->
|
||||
[
|
||||
],
|
||||
]
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
@0-18 SpaceAfter(
|
||||
List(
|
||||
[
|
||||
@1-17 When(
|
||||
@6-7 Num(
|
||||
"2",
|
||||
),
|
||||
[
|
||||
WhenBranch {
|
||||
patterns: [
|
||||
@11-12 NumLiteral(
|
||||
"8",
|
||||
),
|
||||
],
|
||||
value: @14-17 List(
|
||||
Collection {
|
||||
items: [],
|
||||
final_comments: [
|
||||
Newline,
|
||||
],
|
||||
},
|
||||
),
|
||||
guard: None,
|
||||
},
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[when 2 is 8->[
|
||||
]]
|
||||
|
|
@ -677,6 +677,7 @@ mod test_snapshots {
|
|||
pass/when_in_binops.expr,
|
||||
pass/when_in_function.expr,
|
||||
pass/when_in_function_python_style_indent.expr,
|
||||
pass/when_in_list.expr,
|
||||
pass/when_in_parens.expr,
|
||||
pass/when_in_parens_indented.expr,
|
||||
pass/when_newline_after_condition.expr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue