File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ object ParamOverridingCheck:
85
85
value match
86
86
case ref : ThisRef =>
87
87
val target =
88
- if needResolve && ! ctx.property(IsInSuperCall ).nonEmpty then
88
+ if needResolve && ctx.property(IsInSuperCall ).isEmpty then
89
89
Semantic .resolve(ref.klass, field)
90
90
else
91
91
field
@@ -355,6 +355,6 @@ object ParamOverridingCheck:
355
355
case Nil =>
356
356
false
357
357
358
- /** Does the given class override a class parameter? */
358
+ /** Does the class `classSym` have any class parameter overridden by the class `by` ? */
359
359
def anyClassParameterOverridenBy (classSym : ClassSymbol , by : ClassSymbol )(using Context ): Boolean =
360
360
classSym.paramGetters.exists(_.overridingSymbol(classSym).exists)
You can’t perform that action at this time.
0 commit comments