diff options
Diffstat (limited to 'test/files/pos/functions.scala')
-rw-r--r-- | test/files/pos/functions.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/functions.scala b/test/files/pos/functions.scala new file mode 100644 index 0000000000..3a7ce16f37 --- /dev/null +++ b/test/files/pos/functions.scala @@ -0,0 +1,12 @@ +import scala.concurrent.Process + +object Test { + + def foo() = { + val x = 1; + Process.receive { + case "abc" if x == 2 => + System.out.println("hi!") + } + } +} |