mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/lint.t/run.t

16 lines
557 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
The lint alias will run preprocessing actions listed under (lint). It also
defines corrections that may be promoted.
$ cat > correct/add.ml << EOF
> let () = Printf.printf "%d\n" @@ 1 + 2
> EOF
$ dune build @correct/lint
File "correct/add.ml", line 1, characters 0-0:
Error: Files _build/default/correct/add.ml and
_build/default/correct/add.ml.lint-corrected differ.
[1]
$ dune promote correct/add.ml
Promoting _build/default/correct/add.ml.lint-corrected to correct/add.ml.
$ cat correct/add.ml
let () = Printf.printf "%d\n" @@ 3