Skip to content

ocp-indent crashes with failed assertion #337

@nojb

Description

@nojb

The file below (minimized from a larger example) causes ocp-indent to crash:

$ opam exec -- ocp-indent crash.ml
ocp-indent: internal error, uncaught exception:
            File "src/ocp-indent-lexer/approx_lexer.mll", line 659, characters 18-24: Assertion failed

crash.ml:

(* let _ = fun () ->
     match vp_scenario_parameters with
     | Some {vp_equity; _} -> ()
  in
  (* map2i (fun _ -> (* iter2 *)) *)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions