Closed ergomorphic closed 6 years ago
morphic [1:47 PM] @kushti I would fix this but it requires many changes, so I added the issue kushti [6:21 PM] @morphic it's simpler to delete ActorParty, interactive protocols code has been abandoned for long time
This is not so innocent as it may look like. Since the type is not checked, the pattern matches any object regardless of the type. This is definitely what is expected from this method.
The solution is to declare the method with ClassTag context bound
def waitFor[T:ClassTag](handler: T => Receive): Receive
However this leads to many changes in the code