Skip to content

Commit 2cef386

Browse files
committed
Correct type ascription example in explanation
1 parent caff1fe commit 2cef386

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
@@ -1271,7 +1271,7 @@ object messages {
12711271
s"""|There are ${alts.length} methods that could be referenced as the compiler knows too little about the expected type.
12721272
|You may specify the expected type e.g. by
12731273
|- assigning it to a value with a specified type, or
1274-
|- adding a type ascription as in (MyClass.myMethod: String => Int)
1274+
|- adding a type ascription as in `(instance.myMethod: String => Int)`
12751275
|""".stripMargin
12761276
}
12771277

0 commit comments

Comments
 (0)