Nettoyage dans extract_label_names

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5645 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2003-07-03 08:34:08 +00:00
parent 0a1f0f864b
commit 8df11a4cf7
1 changed files with 3 additions and 3 deletions

View File

@ -120,13 +120,13 @@ let rec extract_label_names sexp env ty =
match ty.desc with
| Tconstr (path, _, _) ->
let td = Env.find_type path env in
let rec extract = function
begin match td.type_kind with
| Type_record (fields, _, _) ->
List.map (fun (name, _, _) -> name) fields
| Type_abstract when td.type_manifest <> None ->
extract_label_names sexp env (expand_head env ty)
| _ -> assert false in
extract td.type_kind
| _ -> assert false
end
| _ ->
assert false