mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
fix bug with optional record fields
This commit is contained in:
parent
46755973d6
commit
127dd06586
10 changed files with 202 additions and 162 deletions
|
@ -648,11 +648,6 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
.struct_type(field_types.into_bump_slice(), false);
|
||||
|
||||
// cast the argument bytes into the desired shape for this tag
|
||||
println!(
|
||||
"{} {:?}",
|
||||
structure,
|
||||
load_symbol_and_layout(env, scope, structure)
|
||||
);
|
||||
let argument = load_symbol(env, scope, structure).into_struct_value();
|
||||
|
||||
let struct_value = cast_struct_struct(builder, argument, struct_type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue