Skip to content

Commit fd64da7

Browse files
committed
Fix typo
1 parent a6dc3db commit fd64da7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)