Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fnconstraint.d(14): Error: template constraint must follow parameter lists and attributes
5 fail_compilation/fnconstraint.d(15): Error: declaration expected, not `{`
6 fail_compilation/fnconstraint.d(23): Error: template constraint must follow parameter lists and attributes
7 fail_compilation/fnconstraint.d(23): Error: declaration expected, not `{`
8 fail_compilation/fnconstraint.d(27): Error: `}` expected following members in `struct` declaration
9 fail_compilation/fnconstraint.d(19): struct `S` starts here
10 ---
11 */
12 void foo()()
13 in(true)
14 if (true)
15 {}
16
17 alias f = foo!();
18
19 struct S
20 {
21 this()()
22 if (true)
23 if (true) {}
24 }
25
26 S s;