File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
test/xref2/github_issue_447.t Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ type u = Bar
2
+
3
+ (* * {!constructor-Bar} {!u.constructor-Bar} *)
4
+
5
+ module M : sig
6
+ type t = Foo
7
+ end
8
+
9
+ (* * {!M.constructor-Foo} and {!M.Foo}
10
+
11
+ {!M.t.constructor-Foo} and {!M.t.Foo} *)
12
+
13
+ class t : object end
14
+
15
+ (* * {!t.constructor-A} *)
Original file line number Diff line number Diff line change
1
+ This test tests the ability to reference constructors, omitting the type they
2
+ are coming from .
3
+
4
+ $ ocamlc -c -bin-annot a. mli
5
+ $ odoc compile -- warn-error -I . a. cmti
6
+
7
+ Currently, it is only possible to omit the parent type of the constructor in the
8
+ toplevel: only [{! M. constructor-Foo}] does not resolve, as it cannot find a type
9
+ named [M].
10
+
11
+ $ odoc link a. odoc
12
+ File " a.mli" , line 15 , characters 4 -22:
13
+ Warning: Failed to resolve reference unresolvedroot(t). A Couldn't find " t"
14
+ File " a.mli" , line 9 , characters 4 -24:
15
+ Warning: Failed to resolve reference unresolvedroot(M). Foo Couldn't find " M"
You can’t perform that action at this time.
0 commit comments