aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t5859.scala
blob: 60ec8b4cba35448bc18f1af3d8c6618eafffea56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}