Skip to content

Commit

Permalink
add spread as test
Browse files Browse the repository at this point in the history
  • Loading branch information
bhansconnect committed Nov 21, 2023
1 parent e3174f6 commit 4e6e99e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/compiler/load/tests/test_reporting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12637,6 +12637,19 @@ In roc, functions are always written as a lambda, like{}
"###
);

test_no_problem!(
list_match_spread_as,
indoc!(
r#"
l : List [A, B]
when l is
[A, .. as rest] | [.. as rest, A] -> rest
[.. as rest] -> rest
"#
)
);

test_no_problem!(
list_match_exhaustive_empty_and_rest_with_unary_head,
indoc!(
Expand Down

0 comments on commit 4e6e99e

Please sign in to comment.