File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ trait Checking {
638
638
*
639
639
* The standard library relies on this idiom.
640
640
*/
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 =
642
642
parent match {
643
643
case parent : ClassSymbol if parent is Trait =>
644
644
val psuper = parent.superClass
@@ -653,7 +653,7 @@ trait Checking {
653
653
654
654
/** Check that case classes are not inherited by case classes.
655
655
*/
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 =
657
657
parent match {
658
658
case parent : ClassSymbol =>
659
659
if (parent is Case )
You can’t perform that action at this time.
0 commit comments