mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-13 23:36:29 +00:00
WIP
This commit is contained in:
parent
4a9514d2c4
commit
0247237fe8
16 changed files with 625 additions and 163 deletions
|
@ -429,6 +429,15 @@ impl<'a, 'r> Ctx<'a, 'r> {
|
|||
} => self.with_sym_layout(structure, |ctx, _def_line, layout| {
|
||||
ctx.check_union_at_index(structure, layout, union_layout, tag_id, index)
|
||||
}),
|
||||
&Expr::UnionFieldPtrAtIndex {
|
||||
structure,
|
||||
tag_id,
|
||||
union_layout,
|
||||
index,
|
||||
} => self.with_sym_layout(structure, |ctx, _def_line, layout| {
|
||||
// TODO: I suspect this will fail because the output layout has an extra Box layer?
|
||||
ctx.check_union_at_index(structure, layout, union_layout, tag_id, index)
|
||||
}),
|
||||
Expr::Array { elem_layout, elems } => {
|
||||
for elem in elems.iter() {
|
||||
match elem {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue