Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail7443.d(11): Error: `static` has no effect on a constructor inside a `static` block. Use `static this()`
5 fail_compilation/fail7443.d(12): Error: `shared static` has no effect on a constructor inside a `shared static` block. Use `shared static this()`
6 ---
7 */
8
9 class Foo
10 {
11 public static { this() {}}
12 public shared static { this() {}}
13 public {this(int) {}}
14 }