diff options
| -rw-r--r-- | toplevel/classes.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/classes.ml b/toplevel/classes.ml index a45ab88606..590f5c6f47 100644 --- a/toplevel/classes.ml +++ b/toplevel/classes.ml @@ -158,7 +158,7 @@ let new_instance ?(global=false) ctx (instid, bk, cl) props ?(generalize=true) List.fold_right (fun (na, b, t) (args, args') -> match b with | None -> (List.tl args, List.hd args :: args') - | Some b -> (args, b :: args')) + | Some b -> (args, substl args' b :: args')) (snd cl.cl_context) (args, []) in cl, c', ctx', ctx, len, imps, args |
