Skip to content

Commit 519a545

Browse files
committed
Remove obsolete warning
1 parent 44c8948 commit 519a545

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ object Checking {
9090
if (ctor.isPrimaryConstructor) checkClassBody(classDef.asInstanceOf[TypeDef])(state.withOwner(cls))
9191
else checkSecondaryConstructor(ctor)(state.withOwner(cls))
9292
}
93-
else if (!cls.isOneOf(Flags.EffectivelyOpenFlags))
94-
report.warning("Inheriting non-open class may cause initialization errors", source.sourcePos)
9593
}
9694

9795
def checkSecondaryConstructor(ctor: Symbol)(implicit state: State): Unit = traceOp("checking " + ctor.show, init) {

0 commit comments

Comments
 (0)