-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
open! Import | ||
include S | ||
module Thing : sig end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module type S0 = sig | ||
module Thing : sig | ||
module Config : sig end | ||
end | ||
end | ||
|
||
module type S = sig | ||
include S0 | ||
|
||
module Thing : sig | ||
module Config = Thing.Config | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
A bug report from JS. This code was causing a loop / stack overflow. Success is | ||
simply finishing! | ||
|
||
$ ocamlc -c import.mli -bin-annot | ||
$ ocamlc -c a.mli -bin-annot | ||
|
||
$ odoc compile import.cmti -I . | ||
$ odoc compile a.cmti -I . | ||
|
||
$ odoc link import.odoc -I . | ||
$ odoc link a.odoc -I . | ||
|
||
$ odoc_print --short a.odocl --show-expansions --show-include-expansions | ||
open [ ] | ||
include Import.S | ||
(sig : | ||
include Import.S0 | ||
(sig : | ||
module {Thing}1/shadowed/(74ad8508d0ec544850c6ab547111f52a) : | ||
sig module Config : sig end end | ||
end) | ||
module {Thing}1/shadowed/(1a743df82e4f1cc649e915544d526dea) : | ||
sig | ||
module Config = | ||
{Thing}1/shadowed/(74ad8508d0ec544850c6ab547111f52a).Config | ||
(sig : end) | ||
end | ||
end) | ||
module Thing : sig end | ||
|
||
|