blob: 62451b62baa1bf50bcd0a13f5bf46e7acd6c0397 (
plain) (
tree)
|
|
object Test extends Application {
def foo() = {
def f: int = 1
val x = &f
x
}
def bar(g: => int) = {
&g
}
Console.println((bar{ Console.println("g called"); 42 })())
Console.println(foo()())
}
|