This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
(library
|
||||
(name foo)
|
||||
(modules foo))
|
||||
|
||||
(library
|
||||
(name bar)
|
||||
(modules bar)
|
||||
(libraries foo))
|
||||
|
||||
(executable
|
||||
(name run)
|
||||
(modules run)
|
||||
(libraries bar))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(lang dune 1.7)
|
||||
|
||||
(implicit_transitive_deps false)
|
||||
|
|
@ -0,0 +1 @@
|
|||
let v = 42
|
||||
|
|
@ -0,0 +1 @@
|
|||
Printf.printf "Can't access %d\n" Foo.v
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue