Debian Codegraph @

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

raw
1 /*
2 EXTRA_FILES: imports/imp19661.d
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test19661.d(11): Error: variables cannot be initialized with an expression of type `void`. Use `void` initialization instead.
6 ---
7 */
8
9 module ice19661;
10
11 immutable bool testModule = testFunctionMembers!();
12
13 void testFunctionMembers()() {
14 import imports.imp19661 : isFunction;
15 foreach(member; __traits(allMembers, ice19661)) {
16 bool b = isFunction!(__traits(getMember, ice19661, member));
17 }
18 }