mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-02 05:48:17 +00:00
Fix format for the 'as' keyword
This commit is contained in:
parent
9faf8f5d9b
commit
3a86f5de22
2 changed files with 46 additions and 6 deletions
|
|
@ -6003,6 +6003,33 @@ mod test_fmt {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn issue_6197() {
|
||||
expr_formats_to(
|
||||
indoc!(
|
||||
r#"
|
||||
when l1 is
|
||||
[
|
||||
..
|
||||
as
|
||||
rest
|
||||
]
|
||||
as
|
||||
l2
|
||||
->
|
||||
f rest
|
||||
"#
|
||||
),
|
||||
indoc!(
|
||||
r#"
|
||||
when l1 is
|
||||
[.. as rest] as l2 ->
|
||||
f rest
|
||||
"#
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// this is a parse error atm
|
||||
// #[test]
|
||||
// fn multiline_apply() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue