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 caff1fe commit 2cef386Copy full SHA for 2cef386
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1271,7 +1271,7 @@ object messages {
1271
s"""|There are ${alts.length} methods that could be referenced as the compiler knows too little about the expected type.
1272
|You may specify the expected type e.g. by
1273
|- assigning it to a value with a specified type, or
1274
- |- adding a type ascription as in (MyClass.myMethod: String => Int)
+ |- adding a type ascription as in `(instance.myMethod: String => Int)`
1275
|""".stripMargin
1276
}
1277
0 commit comments