We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 904f407 + 7d183a0 commit b9fa8cbCopy full SHA for b9fa8cb
compiler/src/dotty/tools/dotc/reporting/messages.scala
@@ -527,6 +527,17 @@ import ast.tpd
527
|but an uninitialized var definition.
528
|Only fields can be left uninitialized in this manner; local variables
529
|must be initialized.
530
+ |
531
+ |Another occurrence for this error is self type definition.
532
+ |The ${hl("_")} can be replaced with ${hl("this")}.
533
534
+ |Example before:
535
536
+ |${hl("trait A { _: B => ... ")}
537
538
+ |Example after:
539
540
+ |${hl("trait A { this: B => ... ")}
541
|"""
542
}
543
@@ -2411,4 +2422,4 @@ import ast.tpd
2411
2422
|The variable does not occur in the signature of ${hl(owner)}.
2412
2423
|""".stripMargin
2413
2424
def explain = ""
2414
- }
2425
+ }
0 commit comments