Open
Description
Reproduction steps
Scala version: 2.13.10
implicit class Extension(private val self :Int) {
private def squared :Int = self * self
def avg(other :Int) :Int = math.sqrt(squared * other.squared).toInt
}
Problem
value squared is not a member of Int
def avg(other :Int) :Int = math.sqrt(squared * other.squared).toInt
Would be nice if implicit conversions triggered for all methods accessible in a given scope.