diff options
Diffstat (limited to 'tests/pending/pos/nothing_manifest_disambig-new.scala')
-rw-r--r-- | tests/pending/pos/nothing_manifest_disambig-new.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pending/pos/nothing_manifest_disambig-new.scala b/tests/pending/pos/nothing_manifest_disambig-new.scala new file mode 100644 index 000000000..64afdee60 --- /dev/null +++ b/tests/pending/pos/nothing_manifest_disambig-new.scala @@ -0,0 +1,12 @@ +import scala.reflect.runtime.universe._ + +object Test { + def mani[T: TypeTag](xs: T) = xs + mani(List()) + + def listElMani[T: TypeTag](xs: List[T]) = xs + listElMani(List()) + + def foo[A, C](m : C)(implicit ev: C <:< Traversable[A], mani: TypeTag[A]): (C, A, TypeTag[A]) = (m, m.head, mani) + foo(List(1,2,3)) +} |