summaryrefslogtreecommitdiff
path: root/test/files/pos/functions.scala
blob: 25d1c46eacc2bae63681f0c96445f483610b871c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
object Actor {
  def receive[A](f: PartialFunction[Any, A]): A = ???
}

object Test {

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