This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
A default implementation of a library must belong to the same package
|
||||
|
||||
$ echo "(lang dune 2.6)" > dune-project
|
||||
$ touch dummyfoo2.opam
|
||||
$ mkdir -p vlib impl
|
||||
$ touch vlib/vlib.mli impl/vlib.ml
|
||||
$ cat >vlib/dune <<EOF
|
||||
> (library
|
||||
> (name vlib)
|
||||
> (modules vlib)
|
||||
> (virtual_modules vlib)
|
||||
> (default_implementation def_i))
|
||||
> EOF
|
||||
$ cat >impl/dune <<EOF
|
||||
> (library
|
||||
> (name def_i)
|
||||
> (public_name dummyfoo2.bar)
|
||||
> (implements vlib))
|
||||
> EOF
|
||||
$ dune build @install
|
||||
File "impl/dune", line 4, characters 13-17:
|
||||
4 | (implements vlib))
|
||||
^^^^
|
||||
Error: Library "vlib" is private, it cannot be a dependency of a public
|
||||
library. You need to give "vlib" a public name.
|
||||
[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue