Skip to content

Commit

Permalink
fix bug Wohlwend caml-list 2005-09-19
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/version/3.08@7058 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
garrigue committed Sep 20, 2005
1 parent 018eb16 commit e39e260
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions typing/ctype.ml
Expand Up @@ -275,14 +275,18 @@ let remove_object_name ty =
(**** Hiding of private methods ****)

let hide_private_methods ty =
let (fl, _) = flatten_fields (object_fields ty) in
List.iter
(function (_, k, _) ->
let k = field_kind_repr k in
match k with
Fvar r -> set_kind r Fabsent
| _ -> ())
fl
match (repr ty).desc with
Tobject (fi, nm) ->
nm := None;
let (fl, _) = flatten_fields fi in
List.iter
(function (_, k, _) ->
match field_kind_repr k with
Fvar r -> set_kind r Fabsent
| _ -> ())
fl
| _ ->
assert false


(*******************************)
Expand Down

0 comments on commit e39e260

Please sign in to comment.