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 @@ -349,7 +349,7 @@ object ParamOverridingCheck:
349
349
350
350
// ------------------------- Helper methods ----------------------------------
351
351
352
- /** Does the given class override a class parameter? */
352
+ /** Does the given class override any class parameter? */
353
353
def overrideClassParams (classSym : ClassSymbol )(using Context ): Boolean =
354
354
classSym.info.baseClasses match
355
355
case _ :: inherited =>
@@ -360,4 +360,4 @@ object ParamOverridingCheck:
360
360
361
361
/** Does the class `classSym` have any class parameter overridden by the class `by`? */
362
362
def anyClassParameterOverridenBy (classSym : ClassSymbol , by : ClassSymbol )(using Context ): Boolean =
363
- classSym.paramGetters.exists(_.overridingSymbol(classSym ).exists)
363
+ classSym.paramGetters.exists(_.overridingSymbol(by ).exists)
You can’t perform that action at this time.
0 commit comments