mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Working pattern match on Result Int Int
This commit is contained in:
parent
53bd47221c
commit
99db336033
6 changed files with 44 additions and 88 deletions
|
@ -899,7 +899,8 @@ fn store_pattern2<'a>(
|
|||
let mut arg_layouts = Vec::with_capacity_in(arguments.len(), env.arena);
|
||||
|
||||
if !is_unwrapped {
|
||||
arg_layouts.push(Layout::Builtin(Builtin::Byte(MutMap::default())));
|
||||
// add an element for the tag discriminant
|
||||
arg_layouts.push(Layout::Builtin(Builtin::Int64));
|
||||
}
|
||||
|
||||
for (_, layout) in arguments {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue