File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1475,15 +1475,15 @@ object messages {
14751475 case class CannotHaveSameNameAs (sym : Symbol , cls : Symbol , reason : CannotHaveSameNameAs .Reason )(implicit ctx : Context )
14761476 extends Message (CannotHaveSameNameAsID ) {
14771477 import CannotHaveSameNameAs ._
1478- def resonMessage : String = reason match {
1478+ def reasonMessage : String = reason match {
14791479 case CannotBeOverridden => " class definitions cannot be overridden"
14801480 case DefinedInSelf (self) =>
14811481 s """ cannot define ${sym.showKind} member with the same name as a ${cls.showKind} member in self reference ${self.name}.
14821482 |(Note: this can be resolved by using another name)
14831483 | """ .stripMargin
14841484 }
14851485
1486- val msg = hl """ $sym cannot have the same name as ${cls.showLocated} -- """ + resonMessage
1486+ val msg = hl """ $sym cannot have the same name as ${cls.showLocated} -- """ + reasonMessage
14871487 val kind = " Syntax"
14881488 val explanation = " "
14891489 }
You can’t perform that action at this time.
0 commit comments