blob: a1924ef637018a79ee1ab9d035cf5fe194ce6597 (
plain) (
tree)
|
|
object Test extends App {
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()())
}
|