File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 16
16
- Fix incorrect format of function under unary operator. https://github.com/rescript-lang/rescript-compiler/pull/6953
17
17
- Fix incorrect incorrect printing of module binding with signature. https://github.com/rescript-lang/rescript-compiler/pull/6963
18
18
- Disallow spreading anything but regular variants inside of other variants. https://github.com/rescript-lang/rescript-compiler/pull/6980
19
+ - Fix comment removed when function signature has ` type ` keyword. https://github.com/rescript-lang/rescript-compiler/pull/6997
19
20
20
21
# 11.1.3
21
22
@@ -2508,4 +2509,4 @@ Features:
2508
2509
2509
2510
# 1.0.0
2510
2511
2511
- Initial release
2512
+ Initial release
Original file line number Diff line number Diff line change @@ -1404,6 +1404,8 @@ and walkExpression expr t comments =
1404
1404
attach t.leading expr.pexp_loc leading;
1405
1405
walkExpression expr t inside;
1406
1406
attach t.trailing expr.pexp_loc trailing
1407
+ | Pexp_construct ({txt = Longident. Lident "Function$" } , Some returnExpr ) ->
1408
+ walkExpression returnExpr t comments
1407
1409
| _ ->
1408
1410
if isBlockExpr returnExpr then walkExpression returnExpr t comments
1409
1411
else
You can’t perform that action at this time.
0 commit comments