Skip to content

Commit

Permalink
Throw must be trusted, not safe, to allow to catch Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zardoz89 committed May 27, 2020
1 parent a87c03d commit 8f6ff17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pijamas.d
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class Assertion(T)
* should(&notThrowing).not.Throw;
* ```
*/
void Throw(T : Throwable = Exception)(string file = __FILE__, size_t line = __LINE__) @safe
void Throw(T : Throwable = Exception)(string file = __FILE__, size_t line = __LINE__) @trusted
{
operator = "throw";
bool thrown = false;
Expand Down

0 comments on commit 8f6ff17

Please sign in to comment.