Skip to content

Commit

Permalink
fix Issue 314 - [module] Static, renamed, and selective imports are a…
Browse files Browse the repository at this point in the history
…lways public
  • Loading branch information
9rnsr committed Mar 14, 2014
1 parent 9c204d9 commit 68fb5d2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fail_compilation/imports/test314a.d
@@ -0,0 +1 @@
private static import std.stdio;
1 change: 1 addition & 0 deletions test/fail_compilation/imports/test314b.d
@@ -0,0 +1 @@
private import io = std.stdio;
1 change: 1 addition & 0 deletions test/fail_compilation/imports/test314c.d
@@ -0,0 +1 @@
private import std.stdio : writefln;
19 changes: 19 additions & 0 deletions test/fail_compilation/test314.d
@@ -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.");
}

0 comments on commit 68fb5d2

Please sign in to comment.