Skip to content

Commit

Permalink
bootstrap; fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfirere committed May 31, 2023
1 parent 4ed1de4 commit 57eb68e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file modified ocaml/boot/ocamlc
Binary file not shown.
Binary file modified ocaml/boot/ocamllex
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ File "main.ml", line 1, characters 8-11:
^^^
Error: This expression has type M.a but an expression was expected of type
('a : value)
M.a has an unknown layout, which might not be representable.
M.a has an unknown layout, which might not be a sublayout of value.
No .cmi file found containing M.a.
Hint: Adding "m" to your dependencies might help.
3 changes: 2 additions & 1 deletion ocaml/typing/ctype.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3767,7 +3767,8 @@ let filter_arrow env t l ~force_tpoly =
newty2 ~level
(* CR layouts v5: Change the Layout.value when option can
hold non-values. *)
(Tconstr(Predef.path_option,[newvar2 level Layout.value],
(Tconstr(Predef.path_option,
[newvar2 level (Layout.value ~why:Type_argument)],
ref Mnil))
else
newvar2 level l1
Expand Down

0 comments on commit 57eb68e

Please sign in to comment.