Skip to content

Commit c6abd4e

Browse files
committed
Correct type ascription example in explanation
1 parent 62a95bb commit c6abd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ object messages {
12421242
s"""|There are ${alts.length} methods that could be referenced as the compiler knows too little about the expected type.
12431243
|You may specify the expected type e.g. by
12441244
|- assigning it to a value with a specified type, or
1245-
|- adding a type ascription as in (MyClass.myMethod: String => Int)
1245+
|- adding a type ascription as in `(instance.myMethod: String => Int)`
12461246
|""".stripMargin
12471247
}
12481248

0 commit comments

Comments
 (0)