Skip to content

Commit

Permalink
Fix: Support for Corretto tests (#3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer authored Mar 16, 2023
1 parent c619dbe commit b96ad84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit b96ad84

Please sign in to comment.