Skip to content

Commit d8391c6

Browse files
committed
TempClassInfo#finalize: remove selfInfo parameter
It turns out that in practice we always use the same selfInfo that was used to create the TempClassInfo, so no need to pass it again as a parameter.
1 parent f28ed39 commit d8391c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4043,7 +4043,7 @@ object Types {
40434043
extends CachedClassInfo(prefix, cls, Nil, decls, selfInfo) {
40444044

40454045
/** Install classinfo with known parents in `denot` s */
4046-
def finalize(denot: SymDenotation, parents: List[Type], selfInfo: TypeOrSymbol)(implicit ctx: Context): Unit =
4046+
def finalize(denot: SymDenotation, parents: List[Type])(implicit ctx: Context): Unit =
40474047
denot.info = ClassInfo(prefix, cls, parents, decls, selfInfo)
40484048

40494049
override def derivedClassInfo(prefix: Type)(implicit ctx: Context): ClassInfo =

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ object Scala2Unpickler {
134134
else
135135
registerCompanionPair(scalacCompanion, denot.classSymbol)
136136

137-
tempInfo.finalize(denot, normalizedParents, ost) // install final info, except possibly for typeparams ordering
137+
tempInfo.finalize(denot, normalizedParents) // install final info, except possibly for typeparams ordering
138138
denot.ensureTypeParamsInCorrectOrder()
139139
}
140140
}

compiler/src/dotty/tools/dotc/typer/Namer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ class Namer { typer: Typer =>
11441144
original.putAttachment(Deriver, deriver)
11451145
}
11461146

1147-
tempInfo.finalize(denot, parentTypes, selfInfo)
1147+
tempInfo.finalize(denot, parentTypes)
11481148

11491149
Checking.checkWellFormed(cls)
11501150
if (isDerivedValueClass(cls)) cls.setFlag(Final)

0 commit comments

Comments
 (0)