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 0d09c44 commit c259d1bCopy full SHA for c259d1b
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -658,7 +658,7 @@ trait Checking {
658
case parent: ClassSymbol =>
659
if (parent is Case)
660
ctx.error(ex"""case $caseCls has case ancestor $parent, but case-to-case inheritance is prohibited.
661
- |To overcome this limitation, use extractors to pattern match on non-leaf nodes.""")
+ |To overcome this limitation, use extractors to pattern match on non-leaf nodes.""", pos)
662
else checkCaseInheritance(parent.superClass, caseCls, pos)
663
case _ =>
664
}
0 commit comments