Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetiot committed Oct 16, 2023
1 parent 2392e76 commit 0ea5605
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/passing/tests/disable_local_let.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,28 @@ let f () =
let x = y [@@ocamlformat "disable"]
in
()

let f () =
let open [@ocamlformat "disable"] X
in
()

let f () =
let module [@ocamlformat "disable"] X = Y
in
()

let f () =
let exception [@ocamlformat "disable"] X
in
()

class c =
let open [@ocamlformat "disable"] X
in
x

class type c =
let open [@ocamlformat "disable"] X
in
x

0 comments on commit 0ea5605

Please sign in to comment.