summaryrefslogblamecommitdiff
path: root/test/files/neg/bug875.scala
blob: af0a74d4804dadbebdbcb36b828d6a86879285d3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                          
object Test extends Application {
  val xs = List(4, 5, 6)
  val ys = List(1, 2, 3, xs: _*)
  def mkList(x: int) = List(x)
  def mkList(x: boolean) = List(x)
  mkList(xs: _*)


  def f(x: int*) = List(x: _*)

  def f(x: boolean, y: int*) = List(y: _*)

  def g[a](x: a*) = List(x: _*)

  f(true, 1, xs: _*)
  g(1, xs:_*)

}