Skip to content

Commit c259d1b

Browse files
committed
Add position to error message
1 parent 0d09c44 commit c259d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ trait Checking {
658658
case parent: ClassSymbol =>
659659
if (parent is Case)
660660
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.""")
661+
|To overcome this limitation, use extractors to pattern match on non-leaf nodes.""", pos)
662662
else checkCaseInheritance(parent.superClass, caseCls, pos)
663663
case _ =>
664664
}

0 commit comments

Comments
 (0)