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 #3907 from 9rnsr/fix12567
[enh] Issue 12567 - Modules can't be marked as deprecated Conflicts: src/hdrgen.c src/module.c
- Loading branch information
1 parent
26e68fd
commit 194b4c2
Showing
15 changed files
with
133 additions
and
5 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
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,2 @@ | ||
deprecated module header12567a; | ||
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,2 @@ | ||
deprecated("message") module header12567b; | ||
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,4 @@ | ||
deprecated("This module will be removed in future release.") | ||
module imports.a12567; | ||
|
||
void foo() {} |
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,11 @@ | ||
// REQUIRED_ARGS: | ||
// PERMUTE_ARGS: | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
--- | ||
*/ | ||
deprecated | ||
module test12567a; | ||
|
||
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,11 @@ | ||
// REQUIRED_ARGS: | ||
// PERMUTE_ARGS: | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
--- | ||
*/ | ||
deprecated("message") | ||
module test12567b; | ||
|
||
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,11 @@ | ||
// REQUIRED_ARGS: | ||
// PERMUTE_ARGS: | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
compilable/test12567c.d(9): Deprecation: module imports.a12567 is deprecated - This module will be removed in future release. | ||
--- | ||
*/ | ||
import imports.a12567; | ||
|
||
void main() { foo(); } |
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: -d | ||
// PERMUTE_ARGS: | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
--- | ||
*/ | ||
import imports.a12567; | ||
|
||
void main() { foo(); } |
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,7 @@ | ||
// REQUIRED_ARGS: -o- -H -Hf${RESULTS_DIR}/compilable/header12567a.di | ||
// PERMUTE_ARGS: | ||
// POST_SCRIPT: compilable/extra-files/header-postscript.sh header12567a | ||
|
||
deprecated module header12567a; | ||
|
||
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,7 @@ | ||
// REQUIRED_ARGS: -o- -H -Hf${RESULTS_DIR}/compilable/header12567b.di | ||
// PERMUTE_ARGS: | ||
// POST_SCRIPT: compilable/extra-files/header-postscript.sh header12567b | ||
|
||
deprecated("message") module header12567b; | ||
|
||
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,8 @@ | ||
// REQUIRED_ARGS: -o- | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/fail12567.d(8): Error: string expected, not '"a" ~ "b"' | ||
--- | ||
*/ | ||
deprecated("a" ~ "b") module fail12567; |