blob: da35242a9c978fc8e763fbb27f512a5190b31bf5 (
plain) (
tree)
|
|
object Test extends dotty.runtime.LegacyApp {
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()())
}
|