aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t6443-varargs.scala
blob: 006e332444df8e63705f2648c70c44df3abfb363 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
object Test {

	def main(args: Array[String]): Unit = {
		def foo = {println("foo"); 0}
		lazyDep(X)(foo)
	}

  trait T {
  	type U
  }
  object X extends T { type U = Int }

	def lazyDep(t: T)(us: t.U*): Unit = {
		List(us: _*)
	}
}