Skip to content

Commit 5a901f4

Browse files
committed
Clean comments
1 parent 9b92726 commit 5a901f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ object RefChecks {
8484
* This one used to succeed only if forwarding parameters is on.
8585
* (Forwarding tends to hide problems by binding parameter names).
8686
*/
87-
8887
private def upwardsThisType(cls: Symbol)(using Context) = cls.info match {
8988
case ClassInfo(_, _, _, _, tp: Type) if (tp.stripCapturing ne cls.typeRef) && !cls.isOneOf(FinalOrModuleClass) =>
90-
// println(i"upwardsThisType($cls) = ${cls.typeRef}, ne $tp")
9189
SkolemType(cls.appliedRef).withName(nme.this_)
9290
case _ =>
9391
cls.thisType
@@ -442,7 +440,7 @@ object RefChecks {
442440
val (mtp, otp) = if compareTypes then (memberTp(self), otherTp(self)) else (NoType, NoType)
443441
OverrideError(core, self, member, other, mtp, otp)
444442

445-
def compatTypes(memberTp: Type, otherTp: Type): Boolean = // race.force(i"compatTypes $memberTp <:< $otherTp"):
443+
def compatTypes(memberTp: Type, otherTp: Type): Boolean =
446444
try
447445
isOverridingPair(member, memberTp, other, otherTp,
448446
fallBack = warnOnMigration(

0 commit comments

Comments
 (0)