Skip to content

Commit e140511

Browse files
committed
Remove obsolete warning
1 parent bd5955d commit e140511

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.srcPos)
9593
}
9694

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

0 commit comments

Comments
 (0)