Skip to content

Bug: ocamlformat fails with Bigarray extended indexing in OCaml 4.10.0 #1273

@tachukao

Description

@tachukao

ocamlformat fails to format code that uses latest Bigarray extended indexing feature in OCaml 4.10.0

Here is a simple script that breaks when I try and run ocamlformat on it

open Bigarray
let ( .%{ ;.. } ) = Genarray.get
let ( .%{ ;.. } <- ) = Genarray.set
let () = 
   let x = Genarray.create Float64 c_layout [|3;4;5|] in
   x.%{0;0;0} <- 3.;
   Printf.printf "%f\n" x.%{0;0;0} 

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