blob: bfd9bf9791afb562996944b0d50917a7bc089cb5 (
plain) (
tree)
|
|
object Test {
def main(args: Array[String]) {
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) {
println("1")
u
u
}
}
|