Skip to content

Commit

Permalink
test: reproduce #5267
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: B6DCB61E-4F60-438B-A632-15DCFE3BC268
  • Loading branch information
rgrinberg committed Jan 23, 2022
1 parent 7454f1e commit ef1ee9a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/blackbox-tests/test-cases/gh5267.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
This issue demonstrates a bug when there's a library without any modules and an
executable with a module with the same name as the library's entry point in the
same directory.

$ cat >dune-project <<EOF
> (lang dune 1.2)
> EOF
$ cat >dune<<EOF
> (library
> (name foo)
> (modules))
> (executable
> (name bar)
> (libraries foo))
> EOF
$ cat >bar.ml <<EOF
> module M = Foo
> EOF
$ touch foo.ml
$ touch foo.mli

$ dune build ./bar.exe
File "foo.ml-gen", line 1:
Error: Could not find the .cmi file for interface foo.mli.
[1]

0 comments on commit ef1ee9a

Please # to comment.