summaryrefslogblamecommitdiff
path: root/test/files/pos/functions.scala
blob: 3a7ce16f37310dfef3f32845eb2d52a091dcf7ae (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                 
import scala.concurrent.Process

object Test {

  def foo() = {
    val x = 1;
    Process.receive {
      case "abc" if x == 2 =>
        System.out.println("hi!")
    }
  }
}