Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Support for Corretto tests #3733

Merged
merged 9 commits into from
Mar 16, 2023
3 changes: 2 additions & 1 deletion Source/DafnyCore/Compilers/Java/Compiler-java.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3417,7 +3417,8 @@ protected override void EmitHalt(IToken tok, Expression messageExpr, ConcreteSyn
var wStmts = wr.Fork();
wr.Write("throw new dafny.DafnyHaltException(");
if (tok != null) {
wr.Write("\"" + Dafny.ErrorReporter.TokenToString(tok) + ": \" + ");
EmitStringLiteral(ErrorReporter.TokenToString(tok) + ": ", true, wr);
wr.Write(" + ");
}

EmitToString(wr, messageExpr, wStmts);
Expand Down
1 change: 1 addition & 0 deletions docs/dev/news/3731.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support for Corretto tests