Debian Codegraph @

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

raw
1 /*
2 EXTRA_FILES: imports/imp21353.d
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test21353.d(22): Error: no property `A` for type `imports.imp21353.B`
6 fail_compilation/imports/imp21353.d(5): struct `B` defined here
7 fail_compilation/test21353.d(23): Error: no property `A` for type `imports.imp21353.B`
8 fail_compilation/imports/imp21353.d(5): struct `B` defined here
9 fail_compilation/test21353.d(24): Error: no property `A` for type `imports.imp21353.B`
10 fail_compilation/imports/imp21353.d(5): struct `B` defined here
11 fail_compilation/test21353.d(26): Error: undefined identifier `P` in module `imports.imp21353`
12 fail_compilation/test21353.d(27): Error: undefined identifier `P` in module `imports.imp21353`
13 ---
14 */
15
16 // https://issues.dlang.org/show_bug.cgi?id=21353
17
18 import imports.imp21353;
19
20 void main()
21 {
22 B.A;
23 with (B) { A(0); }
24 with (B()) { A(0); } // fixed
25
26 imports.imp21353.P();
27 with (imports.imp21353) { P(); } // fixed
28 }