Skip to content

Commit

Permalink
Update src/dparse/ast.d
Browse files Browse the repository at this point in the history
Adding additional attributes to deprecation-wrapper of SwitchStatement.expression to avoid breakage

Co-authored-by: Jan Jurzitza <[email protected]>
  • Loading branch information
Mai-Lapyst and WebFreak001 authored Oct 18, 2023
1 parent ae3df3e commit 82ca5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dparse/ast.d
Original file line number Diff line number Diff line change
Expand Up @@ -3153,7 +3153,7 @@ final class SwitchStatement : BaseNode
/** */ Statement statement;
mixin OpEquals;

deprecated("use condition.expression") inout(Expression) expression() inout @property
deprecated("use condition.expression") inout(Expression) expression() inout @property @safe nothrow @nogc pure
{
if (!condition)
return null;
Expand Down

0 comments on commit 82ca5ef

Please sign in to comment.