Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 314 - [module] Static, renamed, and selective imports are a…
…lways public
- Loading branch information
Showing
4 changed files
with
22 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 @@ | ||
private static import std.stdio; |
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 @@ | ||
private import io = std.stdio; |
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 @@ | ||
private import std.stdio : writefln; |
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,19 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/test314.d(16): Error: undefined identifier std | ||
fail_compilation/test314.d(17): Error: undefined identifier io | ||
fail_compilation/test314.d(18): Error: undefined identifier writefln | ||
--- | ||
*/ | ||
|
||
import imports.test314a; | ||
import imports.test314b; | ||
import imports.test314c; | ||
|
||
void main() | ||
{ | ||
std.stdio.writefln("This should not work."); | ||
io.writefln("This should not work."); | ||
writefln("This should not work."); | ||
} |