aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t6443-by-name.scala
blob: 3060a22b4352cfa83926b892b33d54931e0e5c45 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                               
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)(u: => t.U): Unit = {
		println("1")
		u
		u
	}
}