We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af6821b commit b99cf7eCopy full SHA for b99cf7e
compiler/src/dotty/tools/dotc/core/TypeErrors.scala
@@ -72,7 +72,7 @@ class MissingType(val pre: Type, val name: Name)(using Context) extends TypeErro
72
|or the self type of $pre might not contain all transitive dependencies"""
73
case _ if givenSelf.exists && givenSelf.member(name).exists =>
74
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)}"""
+ |but it cannot be called on a receiver whose type does not extend $cls"""
76
case _ =>
77
missingClassFile
78
0 commit comments