diff options
author | Martin Odersky <odersky@gmail.com> | 2006-04-11 16:42:39 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-04-11 16:42:39 +0000 |
commit | 73ff6fcfc2eea1875356d4e1b26d615053ab9130 (patch) | |
tree | ce3852029829847b4cf6ab6c7b5366752e097a4d /test/files/pos | |
parent | e3fc3506c7c918aba5cc7c3baabca95de8f6ac4c (diff) | |
download | scala-73ff6fcfc2eea1875356d4e1b26d615053ab9130.tar.gz scala-73ff6fcfc2eea1875356d4e1b26d615053ab9130.tar.bz2 scala-73ff6fcfc2eea1875356d4e1b26d615053ab9130.zip |
Added some tests
Diffstat (limited to 'test/files/pos')
-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!") + } + } +} |