diff options
Diffstat (limited to 'tests/untried/pos/functions.scala')
-rw-r--r-- | tests/untried/pos/functions.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/pos/functions.scala b/tests/untried/pos/functions.scala new file mode 100644 index 000000000..0207523dd --- /dev/null +++ b/tests/untried/pos/functions.scala @@ -0,0 +1,12 @@ +import scala.actors.Actor + +object Test { + + def foo() = { + val x = 1; + Actor.receive { + case "abc" if x == 2 => + Console.println("hi!") + } + } +} |