Merge pull request #271 from mshinwell/record_mutability
GPR#271: Fix incorrect mutability flag when records are built using "with"master
commit
b5d906778e
|
@ -1170,7 +1170,8 @@ and transl_record env all_labels repres lbl_expr_list opt_init_expr =
|
|||
lbl_expr_list;
|
||||
let ll = Array.to_list lv in
|
||||
let mut =
|
||||
if List.exists (fun (_, lbl, expr) -> lbl.lbl_mut = Mutable) lbl_expr_list
|
||||
if List.exists (fun lbl -> lbl.lbl_mut = Mutable)
|
||||
(Array.to_list all_labels)
|
||||
then Mutable
|
||||
else Immutable in
|
||||
let lam =
|
||||
|
|
Loading…
Reference in New Issue