diff options
Diffstat (limited to 'test/formatters/samplecode/ocp-indent/in.ml')
| -rw-r--r-- | test/formatters/samplecode/ocp-indent/in.ml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/formatters/samplecode/ocp-indent/in.ml b/test/formatters/samplecode/ocp-indent/in.ml new file mode 100644 index 0000000..d647068 --- /dev/null +++ b/test/formatters/samplecode/ocp-indent/in.ml @@ -0,0 +1,35 @@ +(* https://github.com/OCamlPro/ocp-indent/blob/master/tests/failing/list_of_funs.ml *) + +let f x = + (fun x -> x [ (fun () -> 3) ; + (fun () -> 4) ]) + +let f x = (fun x -> x [ (fun () -> 3) ; + (fun () -> 4) ]) + +let f x = + x [ (fun () -> 3) ; + (fun () -> 4) ] + +let f x = + [ (fun () -> 3) ; + (fun () -> 4) ] + +let f x = + (fun x -> x [ (fun () -> + 3) ; + (fun () -> 4) ]) + +let f x = (fun x -> x [ (fun () -> + 3) ; + (fun () -> 4) ]) + +let f x = + x [ (fun () -> + 3) ; + (fun () -> 4) ] + +let f x = + [ (fun () -> + 3) ; + (fun () -> 4) ] |
