summaryrefslogtreecommitdiff
path: root/test/files/pos/functions.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-04-11 16:42:39 +0000
committerMartin Odersky <odersky@gmail.com>2006-04-11 16:42:39 +0000
commit73ff6fcfc2eea1875356d4e1b26d615053ab9130 (patch)
treece3852029829847b4cf6ab6c7b5366752e097a4d /test/files/pos/functions.scala
parente3fc3506c7c918aba5cc7c3baabca95de8f6ac4c (diff)
downloadscala-73ff6fcfc2eea1875356d4e1b26d615053ab9130.tar.gz
scala-73ff6fcfc2eea1875356d4e1b26d615053ab9130.tar.bz2
scala-73ff6fcfc2eea1875356d4e1b26d615053ab9130.zip
Added some tests
Diffstat (limited to 'test/files/pos/functions.scala')
-rw-r--r--test/files/pos/functions.scala12
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!")
+ }
+ }
+}