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()18 static this() const { }
this()19 static this() inout { }
this()20 static this() immutable { }
this()21 static this() shared { }
this()22 static this() const shared { }
23 
this()24 shared static this() const { }
this()25 shared static this() inout { }
this()26 shared static this() immutable { }
this()27 shared static this() shared { }
this()28 shared static this() const shared { }
29