Skip to content

Commit

Permalink
Add Type_abstract support in OCaml 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Feb 21, 2024
1 parent 63f0a3f commit 0475ff1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/debugger/inspect/value_basic.ml
Expand Up @@ -81,7 +81,16 @@ let adopt scene typenv obj ty =
type_manifest = Some body;
type_params;
_;
} -> (
} [@if ocaml_version < (5, 2, 0)] -> (
match Typenv.type_apply typenv type_params body ty_args with
| ty -> resolve_type ty
| exception Ctype.Cannot_apply -> ty)
| {
type_kind = Type_abstract _;
type_manifest = Some body;
type_params;
_;
} [@if ocaml_version >= (5, 2, 0)] -> (
match Typenv.type_apply typenv type_params body ty_args with
| ty -> resolve_type ty
| exception Ctype.Cannot_apply -> ty)
Expand Down

0 comments on commit 0475ff1

Please sign in to comment.