这是一个涉及akka的代码:
def receive = {
case idList: List[ActorRef] => idList.foreach(x => x ! Msg)
}
Sbt 抱怨说:
non-variable type argument akka.actor.ActorRef in type pattern List[akka.actor.ActorRef] is unchecked since it is eliminated by erasure
[warn] case idList: List[ActorRef] => idList.foreach(x => x ! Msg)
我该如何摆脱这个?