diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2010-11-08 06:59:46 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2010-11-08 06:59:46 +0000 |
commit | f368f4e0d58e83102799797e96e36117abbb4731 (patch) | |
tree | 1a326155edc6c86fc2aa9f48bfed4ff272b8cae7 /toplevel | |
parent | 916a46a4ad42a4bf54715de99f89dbb495f73219 (diff) |
allow variance in GADTs
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gadts@10763 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'toplevel')
-rw-r--r-- | toplevel/genprintval.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/genprintval.ml b/toplevel/genprintval.ml index 79e62aae9..847bca436 100644 --- a/toplevel/genprintval.ml +++ b/toplevel/genprintval.ml @@ -267,7 +267,7 @@ module Make(O : OBJ)(EVP : EVALPATH with type value = O.t) = struct tree_of_val depth obj (try Ctype.apply env decl.type_params body ty_list with Ctype.Cannot_apply -> abstract_type) - | {type_kind = Type_generalized_variant constr_list} -> + | {type_kind = Type_variant constr_list} -> process_variants constr_list | {type_kind = Type_record(lbl_list, rep)} -> begin match check_depth depth obj ty with |