We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 947d10a commit 90066dcCopy full SHA for 90066dc
compiler/src/dotty/tools/dotc/typer/RefChecks.scala
@@ -810,12 +810,14 @@ class RefChecks extends MiniPhase { thisTransformer =>
810
cls.owner.info.baseClasses.exists(_.info.member(cls.name).exists)
811
}
812
813
+ val errors = ctx.reporter.errorCount
814
+
815
// If owner is possibly problematic, check owner first.
816
// If there are overriding errors with owner, stop checking current to avoid cyclic reference.
817
// See neg/i1750.scala.
818
if (ownerPossibleProblematic(cls)) checkAllOverrides(cls.owner)
819
- if (!ctx.reporter.hasErrors) checkAllOverrides(cls)
820
+ if (ctx.reporter.errorCount == errors) checkAllOverrides(cls)
821
tree
822
} catch {
823
case ex: MergeError =>
0 commit comments