File tree 2 files changed +2
-10
lines changed
tests/printer/expr/expected
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -3187,15 +3187,7 @@ and printExpression ~state (e : Parsetree.expression) cmtTbl =
3187
3187
| Pexp_letexception (_extensionConstructor , _expr ) ->
3188
3188
printExpressionBlock ~state ~braces: true e cmtTbl
3189
3189
| Pexp_assert expr ->
3190
- let doc = printExpressionWithComments ~state expr cmtTbl in
3191
- let expr =
3192
- match expr.pexp_desc with
3193
- | Pexp_constraint (expr , _ ) -> (
3194
- match expr.pexp_desc with
3195
- | Pexp_pack _ -> doc
3196
- | _ -> addParens doc)
3197
- | _ -> doc
3198
- in
3190
+ let expr = printExpressionWithComments ~state expr cmtTbl in
3199
3191
Doc. concat [Doc. text " assert(" ; expr; Doc. text " )" ]
3200
3192
| Pexp_lazy expr ->
3201
3193
let rhs =
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ assert(truth)
4
4
5
5
let x = assert(true)
6
6
let x = assert(12)
7
- let x = assert(( 12: int) )
7
+ let x = assert(12: int)
8
8
let x = assert(12)
9
9
let x = assert(list{1, 2, ...x})
10
10
let x = assert(module(Foo: Bar))
You can’t perform that action at this time.
0 commit comments