-
-
Notifications
You must be signed in to change notification settings - Fork 609
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 #8443 from RazvanN7/checkAccess_err
Turn deprecation into error for issue 313 merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
- Loading branch information
Showing
6 changed files
with
34 additions
and
16 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,20 @@ | ||
| The deprecation phase for fully qualified names that bypassed private imports is finished | ||
|
|
||
| --- | ||
| // a.d | ||
| import std.stdio; | ||
| --- | ||
|
|
||
| --- | ||
| // b.d | ||
| import a; | ||
|
|
||
| void main() | ||
| { | ||
| std.stdio.writefln("foo"); // deprecation before patch, now errors | ||
| } | ||
| --- | ||
|
|
||
| In order to compile the example successfully, `public` needs to be added | ||
| to the import located in `a.d` : `public import std.stdio;` or `import std.stdio;` | ||
| needs to be added to `b.d`. |
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