blob: a209f1203539118409bd3499265a014fdcbb5054 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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]
|