-
Notifications
You must be signed in to change notification settings - Fork 217
Bug: comments inside attributes are misplaced #1323
Copy link
Copy link
Closed
Labels
Description
Describe the bug
The following example,
type foo = Alpha | Beta [@@ocaml.warning "-37" (* Explanation of warning *)]
type foo =
| Alpha______________________________
| Beta_______________________________
[@@ocaml.warning "-37" (* Explanation of warning *)]gets OCamlformat-ted to:
type foo = Alpha | Beta [@@ocaml.warning "-37"] (* Explanation of warning *)
type foo =
| Alpha______________________________
| Beta_______________________________
[@@ocaml.warning "-37"]
(* Explanation of warning *)The comments have been placed outside the attribute. IMO, this is 'fine but not ideal' in the first case and a bug in the second.
Reactions are currently unavailable