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 {
1475
1475
case class CannotHaveSameNameAs (sym : Symbol , cls : Symbol , reason : CannotHaveSameNameAs .Reason )(implicit ctx : Context )
1476
1476
extends Message (CannotHaveSameNameAsID ) {
1477
1477
import CannotHaveSameNameAs ._
1478
- def resonMessage : String = reason match {
1478
+ def reasonMessage : String = reason match {
1479
1479
case CannotBeOverridden => " class definitions cannot be overridden"
1480
1480
case DefinedInSelf (self) =>
1481
1481
s """ cannot define ${sym.showKind} member with the same name as a ${cls.showKind} member in self reference ${self.name}.
1482
1482
|(Note: this can be resolved by using another name)
1483
1483
| """ .stripMargin
1484
1484
}
1485
1485
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
1487
1487
val kind = " Syntax"
1488
1488
val explanation = " "
1489
1489
}
You can’t perform that action at this time.
0 commit comments