Д
Size: a a a
Д
Oℕ
Д
Д
Oℕ
Oℕ
Д
Д
Д
Д
Д
Д
Д
Д
∫
∫
MM
import simulacrum.typeclass
@typeclass
trait Something[-A] {
def someField(a: A): Double
}
object Something {
import ops._
def useSomeField(a: A) {
println(a.someField)
}
}
not found: value ops
в строчке import ops._
value someField is not a member of type parameter A
в строчке println(a.someField)
.sbt compile
работаетIT
AS