summaryrefslogblamecommitdiff
path: root/test/files/run/amp.scala
blob: 367f3b31e4ac3fcdb0c7de5fc1f31ae2a261b94d (plain) (tree)
1
2
3
4
5
6
7
8
9


                                 
                  
               


     
                        
       



                                                             
 
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()())
}