Skip to content

Commit

Permalink
Fix astbase.d deprecation warnings (#20778)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel authored Jan 25, 2025
1 parent b7e3b3b commit 756e215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dmd/astbase.d
Original file line number Diff line number Diff line change
Expand Up @@ -3406,7 +3406,7 @@ struct ASTBase
return null;
}

final pure inout nothrow @nogc @safe
final pure inout nothrow @nogc @trusted
{
inout(TypeError) isTypeError() { return ty == Terror ? cast(typeof(return))this : null; }
inout(TypeVector) isTypeVector() { return ty == Tvector ? cast(typeof(return))this : null; }
Expand Down Expand Up @@ -4580,7 +4580,7 @@ struct ASTBase
return DYNCAST.expression;
}

final pure inout nothrow @nogc @safe
final pure inout nothrow @nogc @trusted
{
inout(IntegerExp) isIntegerExp() { return op == EXP.int64 ? cast(typeof(return))this : null; }
inout(ErrorExp) isErrorExp() { return op == EXP.error ? cast(typeof(return))this : null; }
Expand Down

0 comments on commit 756e215

Please sign in to comment.