Debian Codegraph @

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

raw
1 /*
2 EXTRA_FILES: imports/dip22a.d
3 TEST_OUTPUT:
4 ---
5 fail_compilation/dip22a.d(18): Error: no property `bar` for `new Klass` of type `imports.dip22a.Klass`
6 fail_compilation/imports/dip22a.d(3): class `Klass` defined here
7 fail_compilation/dip22a.d(19): Error: no property `bar` for `Struct()` of type `imports.dip22a.Struct`
8 fail_compilation/imports/dip22a.d(8): struct `Struct` defined here
9 fail_compilation/dip22a.d(20): Error: undefined identifier `bar` in module `imports.dip22a`
10 fail_compilation/dip22a.d(21): Error: no property `bar` for `Template!int` of type `void`
11 fail_compilation/dip22a.d(22): Error: no property `bar` for `12` of type `int`
12 ---
13 */
14 import imports.dip22a;
15
16 void test()
17 {
18 new Klass().bar();
19 Struct().bar();
20 imports.dip22a.bar();
21 Template!int.bar();
22 12.bar();
23 }