Skip to content

Commit cf9fd54

Browse files
committed
Update docs
1 parent cd914f3 commit cf9fd54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/init/ParamOverridingCheck.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ object ParamOverridingCheck:
8585
value match
8686
case ref: ThisRef =>
8787
val target =
88-
if needResolve && !ctx.property(IsInSuperCall).nonEmpty then
88+
if needResolve && ctx.property(IsInSuperCall).isEmpty then
8989
Semantic.resolve(ref.klass, field)
9090
else
9191
field
@@ -355,6 +355,6 @@ object ParamOverridingCheck:
355355
case Nil =>
356356
false
357357

358-
/** Does the given class override a class parameter? */
358+
/** Does the class `classSym` have any class parameter overridden by the class `by`? */
359359
def anyClassParameterOverridenBy(classSym: ClassSymbol, by: ClassSymbol)(using Context): Boolean =
360360
classSym.paramGetters.exists(_.overridingSymbol(classSym).exists)

0 commit comments

Comments
 (0)