Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit a494db1

Browse files
committed
Remove @optional from outcome printer.
1 parent 06ae537 commit a494db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-libs-406/printtyp.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ and tree_of_constructor cd =
926926
(name, args, Some ret)
927927

928928
and tree_of_label l =
929-
let opt = l.ld_attributes |> List.exists (fun ({txt}, _) -> txt = "optional" || txt = "ns.optional") in
929+
let opt = l.ld_attributes |> List.exists (fun ({txt}, _) -> txt = "ns.optional") in
930930
let typ = match l.ld_type.desc with
931931
| Tconstr (p, [t1], _) when opt && Path.same p Predef.path_option -> t1
932932
| _ -> l.ld_type in

0 commit comments

Comments
 (0)