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