File tree 2 files changed +6
-6
lines changed
tests/printer/expr/expected
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -710,11 +710,6 @@ and printModuleBinding ~state ~isRec moduleBinding cmtTbl i =
710
710
Doc. concat [Doc. text " : " ; printModType ~state modType cmtTbl] )
711
711
| modExpr -> (printModExpr ~state modExpr cmtTbl, Doc. nil)
712
712
in
713
- let modExprDoc =
714
- if ParsetreeViewer. hasAwaitAttribute moduleBinding.pmb_expr.pmod_attributes
715
- then Doc. concat [Doc. text " await " ; modExprDoc]
716
- else modExprDoc
717
- in
718
713
let modName =
719
714
let doc = Doc. text moduleBinding.pmb_name.Location. txt in
720
715
printComments doc cmtTbl moduleBinding.pmb_name.loc
@@ -5455,6 +5450,11 @@ and printModExpr ~state modExpr cmtTbl =
5455
5450
]
5456
5451
| Pmod_functor _ -> printModFunctor ~state modExpr cmtTbl
5457
5452
in
5453
+ let doc =
5454
+ if ParsetreeViewer. hasAwaitAttribute modExpr.pmod_attributes then
5455
+ Doc. concat [Doc. text " await " ; doc]
5456
+ else doc
5457
+ in
5458
5458
printComments doc cmtTbl modExpr.pmod_loc
5459
5459
5460
5460
and printModFunctor ~state modExpr cmtTbl =
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ let x = {
4
4
}
5
5
6
6
let x = {
7
- module M = ME
7
+ module M = await ME
8
8
M.x
9
9
}
You can’t perform that action at this time.
0 commit comments