mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
check if when branch is suffixed
This commit is contained in:
parent
db94b555ab
commit
3e5cfb546d
3 changed files with 28 additions and 1 deletions
|
@ -576,6 +576,8 @@ pub fn unwrap_suffixed_expression_when_help<'a>(
|
|||
Err(..) => return Err(EUnwrapped::Malformed),
|
||||
};
|
||||
|
||||
// TODO: unwrap guard
|
||||
|
||||
let new_branch = WhenBranch{value: *unwrapped_branch_value, patterns, guard: *guard};
|
||||
let mut new_branches = Vec::new_in(arena);
|
||||
let (before, rest) = branches.split_at(branch_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue