1 // REQUIRED_ARGS: 2 /* 3 TEST_OUTPUT: 4 --- 5 fail_compilation/diag6677.d(18): Error: static constructor cannot be `const` 6 fail_compilation/diag6677.d(19): Error: static constructor cannot be `inout` 7 fail_compilation/diag6677.d(20): Error: static constructor cannot be `immutable` 8 fail_compilation/diag6677.d(21): Error: use `shared static this()` to declare a shared static constructor 9 fail_compilation/diag6677.d(22): Error: use `shared static this()` to declare a shared static constructor 10 fail_compilation/diag6677.d(24): Error: shared static constructor cannot be `const` 11 fail_compilation/diag6677.d(25): Error: shared static constructor cannot be `inout` 12 fail_compilation/diag6677.d(26): Error: shared static constructor cannot be `immutable` 13 fail_compilation/diag6677.d(27): Error: redundant attribute `shared` 14 fail_compilation/diag6677.d(28): Error: redundant attribute `shared` 15 --- 16 */ 17 this()18static this() const { } this()19static this() inout { } this()20static this() immutable { } this()21static this() shared { } this()22static this() const shared { } 23 this()24shared static this() const { } this()25shared static this() inout { } this()26shared static this() immutable { } this()27shared static this() shared { } this()28shared static this() const shared { } 29