diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-06-14 12:34:05 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-14 12:34:05 +1000 |
commit | 91b6944480a3b37f1d62a8a2ed3c332ce02a835a (patch) | |
tree | 5288913280c1fc5ca7582f087ed2b2e016393cc5 /src/compiler | |
parent | ab06ce852d0098131a3b798d80e5a5deb5f7b2ac (diff) | |
parent | 3f3a3bb57499fb919e798d03bbc4e84ede8e55d6 (diff) | |
download | scala-91b6944480a3b37f1d62a8a2ed3c332ce02a835a.tar.gz scala-91b6944480a3b37f1d62a8a2ed3c332ce02a835a.tar.bz2 scala-91b6944480a3b37f1d62a8a2ed3c332ce02a835a.zip |
Merge pull request #5219 from som-snytt/issue/9245
SI-9245 Fresher name in Try and test
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala index cc9e39f430..45f731686a 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala @@ -105,7 +105,7 @@ abstract class TreeBuilder { def makeCatchFromExpr(catchExpr: Tree): CaseDef = { val binder = freshTermName() val pat = Bind(binder, Typed(Ident(nme.WILDCARD), Ident(tpnme.Throwable))) - val catchDef = ValDef(Modifiers(ARTIFACT), freshTermName("catchExpr"), TypeTree(), catchExpr) + val catchDef = ValDef(Modifiers(ARTIFACT), freshTermName("catchExpr$"), TypeTree(), catchExpr) val catchFn = Ident(catchDef.name) val body = atPos(catchExpr.pos.makeTransparent)(Block( List(catchDef), |