aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/pos/patterns1213.scala
blob: de1972ca597ef1cb7a324aec958c31380d718825 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                   
abstract class MapLocation(ID: Int) {
  abstract class Message
  case class ReceivePlayer(id: Int) extends Message

  def foo(p: Message): Unit = {
    p match {
      case ReceivePlayer(ID) =>
        ()
    }
  }
}