blob: 076742033f767a894660bca3f9fe8b4ff24f2bf1 (
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))
}
|