blob: de1972ca597ef1cb7a324aec958c31380d718825 (
plain) (
tree)
|
|
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) =>
()
}
}
}
|