We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01d061 commit 3f68507Copy full SHA for 3f68507
src/compiler/scala/tools/nsc/ast/TreeGen.scala
@@ -283,7 +283,7 @@ abstract class TreeGen extends scala.reflect.internal.TreeGen with TreeDSL {
283
}
284
val ownerName = nonLocalEnclosingMember(fun.symbol.originalOwner).name match {
285
case nme.CONSTRUCTOR => nme.NEWkw // do as javac does for the suffix, prefer "new" to "$lessinit$greater$1"
286
- case x => x
+ case x => x.dropLocal
287
288
val newName = nme.ANON_FUN_NAME.append(nme.NAME_JOIN_STRING).append(ownerName)
289
mkMethodForFunctionBody(localTyper)(owner, fun, newName)(additionalFlags = ARTIFACT)
0 commit comments