blob: 9a3db0c6d4921941706c164ec58399dfd2eeb5ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Test {
def mani[T: Manifest](xs: T) = xs
mani(List())
def listElMani[T: Manifest](xs: List[T]) = xs
listElMani(List())
def foo[A, C](m : C)(implicit ev: C <:< Traversable[A], mani: Manifest[A]): (C, A, Manifest[A]) = (m, m.head, mani)
foo(List(1,2,3))
}
|