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




               
                   
                             
                              


     
import scala.actors.Actor

object Test {

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