Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test15177.d

raw
1 // REQUIRED_ARGS: -o-
2 // COMPILED_IMPORTS: imports/test15117a.d
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test15177.d-mixin-19(19): Error: `imports.test15117a.object` is not visible from module `test15177`
7 fail_compilation/test15177.d(28): Error: template instance `test15177.RunApiTest!()` error instantiating
8 ---
9 */
10
11 import users = imports.test15117a;
12
13 void RunApiTest(T...)()
14 {
15 foreach (name; __traits(allMembers, users))
16 {
17 // 3. list the name of TyepInfoStructDeclaration,
18 // but it's just internal symbol and invisible.
19 mixin("alias func = users . " ~ name ~ ";");
20 }
21 }
22
23 void main()
24 {
25 // 1. run semantic3 of users.test_usr_1
26 users.test_usr_1();
27
28 RunApiTest!();
29 }