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 714a8d7Copy full SHA for 714a8d7
compiler/src/dotty/tools/dotc/typer/RefChecks.scala
@@ -813,9 +813,10 @@ class RefChecks extends MiniPhase { thisTransformer =>
813
// If owner is possibly problematic, check owner first.
814
// If there are overriding errors with owner, stop checking current to avoid cyclic reference.
815
// See neg/i1750.scala.
816
+ val errors = ctx.reporter.errorCount
817
if (ownerPossibleProblematic(cls)) checkAllOverrides(cls.owner)
818
+ if (ctx.reporter.errorCount == errors) checkAllOverrides(cls)
819
- if (!ctx.reporter.hasErrors) checkAllOverrides(cls)
820
tree
821
} catch {
822
case ex: MergeError =>
0 commit comments