blob: 60ec8b4cba35448bc18f1af3d8c6618eafffea56 (
plain) (
tree)
|
|
class A {
def f(xs: List[Int], ys: AnyRef*) = ()
def f(xs: AnyRef*) = ()
f()
f(List[AnyRef](): _*)
f(List(): _*)
f(Nil: _*)
// f(Array(): _*) // undetermined ClassTag
f(Array[AnyRef](): _*)
f(List(1))
f(List(1), Nil: _*)
// f(List(1), Array(): _*) // undetermined ClassTag
}
|