File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2302,14 +2302,15 @@ and fmt_expression c ?(box = true) ?(pro = noop) ?eol ?parens
2302
2302
let pro =
2303
2303
intro_epi
2304
2304
$ fmt_if parens (str " (" )
2305
- $ ( fmt_args_grouped ~epi: fmt_atrs e0 args_before
2306
- $ fmt_if parens (closing_paren c ~force ~offset: (- 3 )) )
2305
+ $ fmt_args_grouped ~epi: fmt_atrs e0 args_before
2307
2306
in
2308
2307
let label_sep = Params.Exp. fun_label_sep c.conf in
2309
2308
let pro = pro $ break 1 0 $ fmt_label lbl label_sep in
2310
2309
expr_epi
2311
2310
$ hovbox 4
2312
- (fmt_expression c ~pro ~box: false (sub_exp ~ctx last_arg))
2311
+ (fmt_expression c ~pro ~box: false (sub_exp ~ctx last_arg)
2312
+ $ fmt_if parens (closing_paren c ~force ~offset: (- 3 ))
2313
+ )
2313
2314
| _ ->
2314
2315
let fmt_atrs =
2315
2316
fmt_attributes c ~pre: (Break (1 , - 2 )) pexp_attributes
Original file line number Diff line number Diff line change @@ -547,3 +547,10 @@ let () =
547
547
in
548
548
fooooooooooo x
549
549
end
550
+
551
+ let f () =
552
+ f
553
+ (g a begin fun () ->
554
+ let x = y in
555
+ z
556
+ end )
You can’t perform that action at this time.
0 commit comments