$ ocamlc -c test.mli -bin-annot
$ _build/install/default/bin/odoc compile test.cmti
odoc: internal error, uncaught exception:
Invalid_argument("List.fold_left2")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 33, characters 20-45
Called from Odoc_xref2__Subst.type_expr in file "subst.ml", line 598, characters 21-59
Called from Odoc_xref2__Subst.value in file "subst.ml" (inlined), line 842, characters 19-38
Called from Odoc_xref2__Subst.apply_sig_map.inner.(fun) in file "subst.ml", line 1089, characters 19-52
Called from Odoc_xref2__Component.Delayed.get in file "component.ml" (inlined), line 55, characters 16-22
Called from Odoc_xref2__Lang_of.signature_items.inner in file "lang_of.ml", line 438, characters 16-39
Called from Odoc_xref2__Lang_of.signature in file "lang_of.ml" (inlined), line 466, characters 12-43
Called from Odoc_xref2__Lang_of.include_ in file "lang_of.ml", line 641, characters 18-69
...
The MWE is highly suggestive of what's going on:
The result is an
Invalid_argumentout ofList.fold_left2, caused by a length mismatch between the parameter list and the argument list.