| 1 |
/* |
| 2 |
EXTRA_FILES: imports/a313.d imports/b313.d imports/pkg313/package.d |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/fail313.d(16): Error: undefined identifier `b313` in package `imports`, perhaps add `static import imports.b313;` |
| 6 |
fail_compilation/fail313.d(23): Error: undefined identifier `core` |
| 7 |
fail_compilation/fail313.d(28): Error: undefined identifier `pkg313` in package `imports`, perhaps add `static import imports.pkg313;` |
| 8 |
--- |
| 9 |
*/ |
| 10 |
module test313; |
| 11 |
|
| 12 |
import imports.a313; |
| 13 |
|
| 14 |
void test1() |
| 15 |
{ |
| 16 |
imports.b313.bug(); |
| 17 |
import imports.b313; |
| 18 |
imports.b313.bug(); |
| 19 |
} |
| 20 |
|
| 21 |
void test2() |
| 22 |
{ |
| 23 |
core.stdc.stdio.printf(""); |
| 24 |
} |
| 25 |
|
| 26 |
void test3() |
| 27 |
{ |
| 28 |
imports.pkg313.bug(); |
| 29 |
} |