Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable -checkaction=context by default
- Loading branch information
Showing
8 changed files
with
28 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Enhanced `assert` informations are now printed by default | ||
|
||
Starting from this release, DMD will now print rich informations on assert failures. | ||
For example, the following code: | ||
--- | ||
void main () | ||
{ | ||
int a = 0, b = 42; | ||
assert(a == b); | ||
} | ||
--- | ||
|
||
Will now print: `core.exception.AssertError@filename.d(4): 0 != 42`. | ||
This behavior was previously accessible via the CLI switch `-checkaction=context`. | ||
To revert to the old behavior, use `-checkaction=D`. |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
REQUIRED_ARGS: -d | ||
REQUIRED_ARGS: -d -checkaction=D | ||
TEST_OUTPUT: | ||
--- | ||
--- | ||
|
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