Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3834 from 9rnsr/fix11453
Issue 11453 - Compiling packages has a dependency on order of modules passed to the compiler
- Loading branch information
1 parent
8631eb8
commit a3b6ed6
Showing
7 changed files
with
28 additions
and
6 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
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
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 @@ | ||
module foo11453.bar11453; |
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 @@ | ||
module foo11453; |
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,10 @@ | ||
// REQUIRED_ARGS: -Ifail_compilation/extra-files | ||
// EXTRA_SOURCES: extra-files/foo11453.d extra-files/bar11453.d | ||
/* | ||
TEST_OUTPUT | ||
--- | ||
fail_compilation/extra-files/bar11453.d(1): Error: package name 'foo11453' conflicts with usage as a module name in file fail_compilation/extra-files/foo11453.d | ||
--- | ||
*/ | ||
|
||
void main() {} |
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,10 @@ | ||
// REQUIRED_ARGS: -Ifail_compilation/extra-files | ||
// EXTRA_SOURCES: extra-files/bar11453.d extra-files/foo11453.d | ||
/* | ||
TEST_OUTPUT | ||
--- | ||
fail_compilation/extra-files/foo11453.d(1): Error: module foo11453 from file fail_compilation/extra-files/foo11453.d conflicts with package name foo11453 | ||
--- | ||
*/ | ||
|
||
void main() {} |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
Error: module imports from file fail_compilation/imports/test64a.d conflicts with package name imports | ||
fail_compilation/imports/test64a.d(1): Error: module imports from file fail_compilation/imports/test64a.d conflicts with package name imports | ||
--- | ||
*/ | ||
|
||
// PERMUTE_ARGS: | ||
|
||
import std.stdio; | ||
//import std.stdio; | ||
|
||
import imports.test64a; | ||
|
||
int main(char[][] args) | ||
int main(string[] args) | ||
{ | ||
writefln(file1); | ||
//writefln(file1); | ||
return 0; | ||
} | ||
|