File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ trait Checking {
638638 *
639639 * The standard library relies on this idiom.
640640 */
641- def checkTraitInheritance (parent : Symbol , cls : ClassSymbol , pos : Position )(implicit ctx : Context ): Unit = {
641+ def checkTraitInheritance (parent : Symbol , cls : ClassSymbol , pos : Position )(implicit ctx : Context ): Unit =
642642 parent match {
643643 case parent : ClassSymbol if parent is Trait =>
644644 val psuper = parent.superClass
@@ -653,7 +653,7 @@ trait Checking {
653653
654654 /** Check that case classes are not inherited by case classes.
655655 */
656- def checkCaseInheritance (parent : Symbol , caseCls : ClassSymbol , pos : Position )(implicit ctx : Context ): Unit = {
656+ def checkCaseInheritance (parent : Symbol , caseCls : ClassSymbol , pos : Position )(implicit ctx : Context ): Unit =
657657 parent match {
658658 case parent : ClassSymbol =>
659659 if (parent is Case )
You can’t perform that action at this time.
0 commit comments