Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor redundant/conflicting storage class handling
Check redundant/conflicting attributes between prefix and postfix
- Loading branch information
Showing
9 changed files
with
143 additions
and
183 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,17 @@ | ||
|
||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/parseStc4.d(14): Error: redundant attribute 'pure' | ||
fail_compilation/parseStc4.d(14): Error: redundant attribute 'nothrow' | ||
fail_compilation/parseStc4.d(14): Error: conflicting attribute '@system' | ||
fail_compilation/parseStc4.d(14): Error: redundant attribute '@nogc' | ||
fail_compilation/parseStc4.d(14): Error: redundant attribute '@property' | ||
--- | ||
*/ | ||
pure nothrow @safe @nogc @property | ||
int foo() | ||
pure nothrow @system @nogc @property | ||
{ | ||
return 0; | ||
} |
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