Skip to content

Commit 85d5bdb

Browse files
committed
Fix typo in class name
1 parent 86733b2 commit 85d5bdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ object Parsers {
540540
def handleThis(qual: Ident) = {
541541
in.nextToken()
542542
val t = atPos(start) { This(qual) }
543-
if (!thisOK && in.token != DOT) syntaxError(DangelingThisInPath(), start)
543+
if (!thisOK && in.token != DOT) syntaxError(DanglingThisInPath(), start)
544544
dotSelectors(t, finish)
545545
}
546546
def handleSuper(qual: Ident) = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ object messages {
902902
val explanation = ""
903903
}
904904

905-
case class DangelingThisInPath()(implicit ctx: Context) extends Message(34) {
905+
case class DanglingThisInPath()(implicit ctx: Context) extends Message(34) {
906906
val kind = "Syntax"
907907
val msg = hl"""Expected an additional member selection after the keyword ${"this"}"""
908908

0 commit comments

Comments
 (0)