blob: d46461ba20682acc9c18e56441359e8388c478c6 (
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()())
}
|