Skip to content

Bug: attributes attached to certain kinds of binops #1250

@emillon

Description

@emillon

Hi,

ocamlformat crashes on the following input:

let _ = ([] @ []) [@a]

Interestingly, this only happens with some kinds of binary operators. For example ("" ^ "") [@a] crashes as well, but (0 + 0) [@a] works. Part of the reason might be that 0 + 0 [@a] is parsed with the attribute on the apply, not on the second operand.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions