Skip to content

Commit c0e36c6

Browse files
oderskysmarter
authored andcommitted
Update compiler/src/dotty/tools/dotc/core/TypeErrors.scala
Co-authored-by: Guillaume Martres <[email protected]> [Cherry-picked 66bba46]
1 parent 7c095c5 commit c0e36c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeErrors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class MissingType(val pre: Type, val name: Name)(using Context) extends TypeErro
7272
|or the self type of $pre might not contain all transitive dependencies"""
7373
case _ if givenSelf.exists && givenSelf.member(name).exists =>
7474
i"""$name exists as a member of the self type $givenSelf of $cls
75-
|but it cannot be referenced from a scope that does not extend that ${ctx.printer.kindString(cls)}"""
75+
|but it cannot be called on a receiver whose type does not extend $cls"""
7676
case _ =>
7777
missingClassFile
7878

0 commit comments

Comments
 (0)