ScorexFoundation / sigmastate-interpreter

ErgoScript compiler and ErgoTree Interpreter implementation for Ergo blockchain
MIT License
62 stars 40 forks source link

Get rid of warning in ActorParty.waitFor #192

Closed ergomorphic closed 6 years ago

ergomorphic commented 6 years ago

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

ergomorphic commented 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