Skip to content

Bug: Failure to format a file #1028

@martinslota

Description

@martinslota

Describe the bug
I accidentally stumbled upon this failure to format a file.

How to Reproduce
Steps to reproduce the behavior:

  • What is the formatted file? Please try to minimize the code snippet.
let (>>=) = Caml.Result.bind

let f = (Ok ()) >>= (* *)
  (fun _ -> Ok ())

The problem seems to be that the comment gets dropped.

  • What are the selected options?
(...)
break-infix-before-func=false (file .ocamlformat:21)
(...)

The option --print-config prints the configuration on the standard output, please put the result of this command in the report if you are not sure which option causes the issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions