mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Merge remote-tracking branch 'origin/trunk' into mono-if
This commit is contained in:
commit
1a8f380033
5 changed files with 162 additions and 59 deletions
|
@ -192,6 +192,7 @@ pub enum Expr<'a> {
|
|||
label: Lowercase,
|
||||
field_layout: Layout<'a>,
|
||||
struct_layout: Layout<'a>,
|
||||
record: &'a Expr<'a>,
|
||||
},
|
||||
|
||||
Array {
|
||||
|
@ -680,7 +681,7 @@ fn from_can<'a>(
|
|||
ext_var,
|
||||
field_var,
|
||||
field,
|
||||
..
|
||||
loc_expr,
|
||||
} => {
|
||||
let arena = env.arena;
|
||||
|
||||
|
@ -701,10 +702,13 @@ fn from_can<'a>(
|
|||
}
|
||||
};
|
||||
|
||||
let record = arena.alloc(from_can(env, loc_expr.value, procs, None));
|
||||
|
||||
Expr::Access {
|
||||
label: field,
|
||||
field_layout,
|
||||
struct_layout,
|
||||
record,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue