Skip to content

Commit

Permalink
Add test for issue ocaml#1103
Browse files Browse the repository at this point in the history
  • Loading branch information
jonludlam committed Mar 28, 2024
1 parent b3681d0 commit 25c5559
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/xref2/github_issue_1103.t/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$ ocamlc -bin-annot -c to_open.mli
$ ocamlc -bin-annot -c test.mli
$ odoc compile to_open.cmti
$ odoc compile -I . test.cmti

The following should not result in any unresolved references

$ odoc link -I . --open To_open test.odoc
File "test.mli", line 2, characters 6-12:
Warning: Failed to resolve reference unresolvedroot(Foo) Couldn't find "Foo"
$ odoc link -I . to_open.odoc


6 changes: 6 additions & 0 deletions test/xref2/github_issue_1103.t/test.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module X : sig
(** {!Foo} {!To_open.Foo} *)
end

(** {!modules: X} *)

3 changes: 3 additions & 0 deletions test/xref2/github_issue_1103.t/to_open.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Foo : sig
end

0 comments on commit 25c5559

Please sign in to comment.