Replace scope(success) with scope(exit) (#20593)

This commit is contained in:
Dennis 2024-12-23 22:47:05 +01:00 committed by GitHub
parent 02095d6b93
commit 128f23b132
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -3934,7 +3934,7 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
return;
}
scope (success) result.rvalue = exp.rvalue;
scope (exit) result.rvalue = exp.rvalue;
Dsymbol scopesym;
Dsymbol s = sc.search(exp.loc, exp.ident, scopesym);

View file

@ -2871,7 +2871,8 @@ private void expressionPrettyPrint(Expression e, ref OutBuffer buf, ref HdrGenSt
if (e.rvalue)
buf.writestring("__rvalue(");
scope (success)
scope (exit)
if (e.rvalue)
buf.writeByte(')');