Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/core/TypeErrors.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
  • Loading branch information
odersky and smarter authored May 28, 2024
1 parent af6821b commit b99cf7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/TypeErrors.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MissingType(val pre: Type, val name: Name)(using Context) extends TypeErro
|or the self type of $pre might not contain all transitive dependencies"""
case _ if givenSelf.exists && givenSelf.member(name).exists =>
i"""$name exists as a member of the self type $givenSelf of $cls
|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"""
case _ =>
missingClassFile

Expand Down

0 comments on commit b99cf7e

Please sign in to comment.