From f3de4ee2a798cb103bbac849cc6981b7de89cb90 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 1 Jul 2010 23:12:34 -0700 Subject: [PATCH] Teach the associative_binary_op_ty_fold about box, mutable and tys. --- src/boot/me/semant.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/boot/me/semant.ml b/src/boot/me/semant.ml index c6c60601831..30e8b7516d5 100644 --- a/src/boot/me/semant.ml +++ b/src/boot/me/semant.ml @@ -926,6 +926,7 @@ let associative_binary_op_ty_fold fn islots oslot in { base with + ty_fold_tys = (fun ts -> reduce (Array.to_list ts)); ty_fold_slots = (fun slots -> reduce (Array.to_list slots)); ty_fold_slot = (fun (_, a) -> a); ty_fold_tags = (fun tab -> reduce (htab_vals tab)); @@ -941,6 +942,8 @@ let associative_binary_op_ty_fold reduce (List.map reduce_fn (htab_vals fns))); ty_fold_chan = (fun a -> a); ty_fold_port = (fun a -> a); + ty_fold_box = (fun a -> a); + ty_fold_mutable = (fun a -> a); ty_fold_constrained = (fun (a, _) -> a) } let ty_fold_bool_and (default:bool) : bool simple_ty_fold =