This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,5 @@
(alias
(name runtest)
(action (run ./main.exe)))
(executable (name main))

View file

@ -0,0 +1,3 @@
let () =
print_endline Lib.Sub.hello;
()

View file

@ -0,0 +1,9 @@
When there are explicit interfaces, modules must be rebuilt.
$ echo 'let hello = "hello"' > lib_sub.ml
$ dune runtest
hello
$ echo 'let _x = 1;; let () = print_endline "blah"' >> lib_sub.ml
$ dune runtest
blah
hello

View file

@ -0,0 +1,5 @@
(alias
(name runtest)
(action (run ./main.exe)))
(executable (name main))

View file

@ -0,0 +1 @@
module Sub = Lib_sub

View file

@ -0,0 +1,3 @@
let () =
print_endline Lib.Sub.hello;
()

View file

@ -0,0 +1,10 @@
When there are no interfaces, the situation is the same, but it
is not possible to rely on these.
$ echo 'let hello = "hello"' > lib_sub.ml
$ dune runtest
hello
$ echo 'let _x = 1' >> lib_sub.ml
$ dune runtest
hello