Skip to content

Commit 1a202d0

Browse files
Julowjonludlam
authored andcommitted
loader: Fix compatibility with 4.02
1 parent da1447f commit 1a202d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loader/cmti.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let rec read_core_type env container ctyp =
5151
argument since the 4.02.x representation includes it explicitly. *)
5252
let arg = match lbl with
5353
| None | Some(Label(_)) -> read_core_type env container arg
54-
| Some(Optional(_)) ->
54+
| Some(Optional(_)) | Some(RawOptional(_)) ->
5555
let arg' = match arg.ctyp_desc with
5656
| Ttyp_constr(_, _, param :: _) -> param
5757
| _ -> arg

0 commit comments

Comments
 (0)