blob: a209f1203539118409bd3499265a014fdcbb5054 (
plain) (
tree)
|
|
trait Search[M] {
def search(input: M): C[Int] = {
println("Search received: " + input)
null
}
}
class SearchC[M] {
def searchC(input: M): C[Int] = {
println("SearchC received: " + input)
null
}
}
object StringSearch extends SearchC[String] with Search[String]
trait C[T]
|