diff options
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreeGen.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeGen.scala b/src/compiler/scala/tools/nsc/ast/TreeGen.scala index 772fdd59b4..6177d6d943 100644 --- a/src/compiler/scala/tools/nsc/ast/TreeGen.scala +++ b/src/compiler/scala/tools/nsc/ast/TreeGen.scala @@ -286,7 +286,7 @@ abstract class TreeGen { if (treeInfo.isPureExpr(expr)) { within(() => expr); } else { - val temp = owner.newValue(expr.pos, unit.fresh.newName()) + val temp = owner.newValue(expr.pos, unit.fresh.newName(expr.pos, "ev$")) .setFlag(SYNTHETIC).setInfo(expr.tpe); atPos(expr.pos) { Block(List(ValDef(temp, expr)), within(() => Ident(temp) setType expr.tpe)) |