Skip to content

Bug: crash on record expr with pack fields #962

@hhugo

Description

@hhugo

Describe the bug

  module Foo = struct
    module M = struct end

    module type S = sig end

    type t =
      { a : (module S)
      ; b : (module S)
      }

    let _t = { a = (module M : S); b = (module M : S) }
  end
ocamlformat.exe: Cannot process "****.ml".
  Please report this bug at https://github.com/ocaml-ppx/ocamlformat/issues.
  BUG: unhandled exception. Use [--debug] for details.
EXIT STATUS 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions