Skip to content

Commit b99cf7e

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/core/TypeErrors.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent af6821b commit b99cf7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)