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

Pipe reformat eats annotation #629

Merged
merged 5 commits into from Sep 2, 2022
Merged

Conversation

cristianoc
Copy link
Contributor

No description provided.

@cristianoc
Copy link
Contributor Author

There are some roundtrip issues too.

@cristianoc cristianoc added this to the v10.1 "The New Features" milestone Sep 1, 2022
@@ -3658,6 +3658,7 @@ and printBinaryExpression ~customLayout (expr : Parsetree.expression) cmtTbl =
Doc.group
(Doc.concat
[
printAttributes ~customLayout expr.pexp_attributes cmtTbl;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cristianoc
Copy link
Contributor Author

The roundtrip tests failing are:

-let s1 = @ann x->foo
+let s1 = (@ann x)->foo
 let s2 = @ann foo(x)
-let s3 = @ann x |> foo
+let s3 = (@ann x) |> foo

indicating a printing issue

@cristianoc cristianoc merged commit 94ae874 into master Sep 2, 2022
@cristianoc cristianoc deleted the pipe-reformat-eats-annotation branch September 2, 2022 05:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant