Skip to content

Commit fe7ac0a

Browse files
committed
Use def for recursive partial function
1 parent da14d0d commit fe7ac0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/RenameLifted.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RenameLifted extends MiniPhaseTransform with SymTransformer { thisTransfor
3131

3232
/** Refreshes the number of the name based on the full name of the symbol */
3333
private def refreshedName(sym: Symbol)(implicit ctx: Context): Name = {
34-
lazy val rewriteUnique: PartialFunction[Name, Name] = {
34+
def rewriteUnique: PartialFunction[Name, Name] = {
3535
case name: DerivedName if name.info.kind == UniqueName =>
3636
val fullName = (sym.owner.fullName.toString + name.underlying).toTermName
3737
val freshName = UniqueName.fresh(fullName)

0 commit comments

Comments
 (0)