Skip to content

Commit 3f68507

Browse files
committed
Drop local suffix in lambda impl method name
1 parent f01d061 commit 3f68507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/nsc/ast/TreeGen.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ abstract class TreeGen extends scala.reflect.internal.TreeGen with TreeDSL {
283283
}
284284
val ownerName = nonLocalEnclosingMember(fun.symbol.originalOwner).name match {
285285
case nme.CONSTRUCTOR => nme.NEWkw // do as javac does for the suffix, prefer "new" to "$lessinit$greater$1"
286-
case x => x
286+
case x => x.dropLocal
287287
}
288288
val newName = nme.ANON_FUN_NAME.append(nme.NAME_JOIN_STRING).append(ownerName)
289289
mkMethodForFunctionBody(localTyper)(owner, fun, newName)(additionalFlags = ARTIFACT)

0 commit comments

Comments
 (0)