Skip to content

Commit 8b428fc

Browse files
committed
Revert bad change
1 parent 3dad04a commit 8b428fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/DafnyCore/Backends/Java/JavaCodeGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4001,9 +4001,9 @@ protected override ConcreteSyntaxTree EmitCoercionIfNecessary(Type/*?*/ from, Ty
40014001
protected override ConcreteSyntaxTree EmitDowncast(Type from, Type to, IOrigin tok, ConcreteSyntaxTree wr) {
40024002
var w = new ConcreteSyntaxTree();
40034003
if (from != null && to != null && from.IsTraitType && to.AsNewtype != null) {
4004-
wr.Write($"(({to.AsNewtype.GetFullCompileName(Options)})({w}))");
4004+
wr.Format($"(({to.AsNewtype.GetFullCompileName(Options)})({w}))");
40054005
} else if (from != null && to != null && from.AsNewtype != null && to.IsTraitType) {
4006-
wr.Write($"(({TypeName(to, wr, tok)})({w}))");
4006+
wr.Format($"(({TypeName(to, wr, tok)})({w}))");
40074007
} else {
40084008
wr.Write($"(({TypeName(to, wr, tok)})(java.lang.Object)(");
40094009
w = wr.Fork();

0 commit comments

Comments
 (0)