This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
(melange.emit
|
||||
(target private-module)
|
||||
(modules foo)
|
||||
(emit_stdlib false)
|
||||
(libraries lib))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(lang dune 3.8)
|
||||
|
||||
(using melange 0.1)
|
||||
|
|
@ -0,0 +1 @@
|
|||
Lib.X.run ();;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
X is not accessible as it is private
|
||||
$ dune build private-module/foo.js
|
||||
File "foo.ml", line 1, characters 0-9:
|
||||
1 | Lib.X.run ();;
|
||||
^^^^^^^^^
|
||||
Error: The module Lib.X is an alias for module Lib__X, which is missing
|
||||
[1]
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(library
|
||||
(name lib)
|
||||
(modes melange)
|
||||
(private_modules x))
|
||||
|
|
@ -0,0 +1 @@
|
|||
let run () = print_endline "private"
|
||||
|
|
@ -0,0 +1 @@
|
|||
let run () = print_endline "private"
|
||||
Loading…
Add table
Add a link
Reference in a new issue