-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[coq] Don't allow public theories to depend on private ones.
For now we follow very simple rules, public theories cannot depend on any way on private ones.
- Loading branch information
Showing
9 changed files
with
53 additions
and
4 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
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/public_dep_on_private/dune
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,3 @@ | ||
(rule | ||
(alias default) | ||
(action (echo "%{read:public.install}"))) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/public_dep_on_private/dune-project
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,3 @@ | ||
(lang dune 2.4) | ||
|
||
(using coq 0.1) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/public_dep_on_private/private/a.v
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 @@ | ||
Definition foo := 3. |
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/coq/public_dep_on_private/private/dune
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,2 @@ | ||
(coq.theory | ||
(name private)) |
Empty file.
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/public_dep_on_private/public/b.v
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,3 @@ | ||
From private Require a. | ||
|
||
Definition bar := a.foo. |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/public_dep_on_private/public/dune
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 @@ | ||
(coq.theory | ||
(name public) | ||
(package public) | ||
(theories private)) |
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