diff options
Diffstat (limited to 'test/files/run/amp.scala')
-rw-r--r-- | test/files/run/amp.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/amp.scala b/test/files/run/amp.scala new file mode 100644 index 0000000000..62451b62ba --- /dev/null +++ b/test/files/run/amp.scala @@ -0,0 +1,19 @@ +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()()) + +} + + + |