Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue 6677 - static this attributes position
- Loading branch information
Showing
5 changed files
with
88 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/diag6677.d(1): Error: static constructors cannot be const | ||
fail_compilation/diag6677.d(2): Error: static constructors cannot be inout | ||
fail_compilation/diag6677.d(3): Error: static constructors cannot be immutable | ||
fail_compilation/diag6677.d(4): Error: to create a shared static constructor, use 'shared static this' | ||
fail_compilation/diag6677.d(5): Error: to create a shared static constructor, use 'shared static this' | ||
fail_compilation/diag6677.d(5): Error: static constructors cannot be const | ||
fail_compilation/diag6677.d(7): Error: static constructors cannot be const | ||
fail_compilation/diag6677.d(8): Error: static constructors cannot be inout | ||
fail_compilation/diag6677.d(9): Error: static constructors cannot be immutable | ||
fail_compilation/diag6677.d(10): Error: static constructors cannot be shared | ||
fail_compilation/diag6677.d(11): Error: static constructors cannot be const shared | ||
--- | ||
*/ | ||
|
||
#line 1 | ||
static this() const { } | ||
static this() inout { } | ||
static this() immutable { } | ||
static this() shared { } | ||
static this() const shared { } | ||
|
||
shared static this() const { } | ||
shared static this() inout { } | ||
shared static this() immutable { } | ||
shared static this() shared { } | ||
shared static this() const shared { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters