We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8a274 commit 65ca50eCopy full SHA for 65ca50e
spec/expression.dd
@@ -2427,6 +2427,17 @@ $(GNAME AssertArguments):
2427
)
2428
2429
2430
+ $(NOTE $(D AssertError) is the default for $(B dmd), with an optional
2431
+ $(DDSUBLINK dmd, switch-checkaction, $(B -checkaction=context))
2432
+ switch to show certain sub-expressions used in the first *AssertExpression*
2433
+ in the error message:)
2434
+
2435
+ ---
2436
+ auto x = 4;
2437
+ assert(x < 3);
2438
2439
+ $(P When in use, the above will throw an `AssertError` with a message `4 >= 3`.)
2440
2441
$(BEST_PRACTICE
2442
$(OL
2443
$(LI Do not have side effects in either $(I AssignExpression) that subsequent code
0 commit comments