summaryrefslogblamecommitdiff
path: root/test/files/run/amp.scala
blob: d46461ba20682acc9c18e56441359e8388c478c6 (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()())

}