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.
1 parent 62a95bb commit c6abd4eCopy full SHA for c6abd4e
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1242,7 +1242,7 @@ object messages {
1242
s"""|There are ${alts.length} methods that could be referenced as the compiler knows too little about the expected type.
1243
|You may specify the expected type e.g. by
1244
|- assigning it to a value with a specified type, or
1245
- |- adding a type ascription as in (MyClass.myMethod: String => Int)
+ |- adding a type ascription as in `(instance.myMethod: String => Int)`
1246
|""".stripMargin
1247
}
1248
0 commit comments