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,13 @@
(library
(name foo)
(modules foo))
(library
(name bar)
(modules bar)
(libraries foo))
(executable
(name run)
(modules run)
(libraries bar))

View file

@ -0,0 +1,3 @@
(lang dune 1.7)
(implicit_transitive_deps false)

View file

@ -0,0 +1 @@
Printf.printf "Can't access %d\n" Foo.v

View file

@ -0,0 +1,6 @@
run should not access foo
$ dune build ./run.exe 2>&1 | grep -v ocamlc
File "run.ml", line 1, characters 34-39:
1 | Printf.printf "Can't access %d\n" Foo.v
^^^^^
Error: Unbound module Foo