The following is my code, where I get the exception in the question title
ActorRef and the ask function here are both Akka, but I have no idea what the above exception means. Even a search on Google doesn't produce much on NotInferedB....can someone shed some light?
def exchangeRateLookup(exchangeRateActor: ActorRef): (Option) => Future[Any] = {
(iv: Option) => iv map (iv => ask(exchangeRateActor, iv.asInstanceOf[IV].getCurrency.getIsoCurrCode)).getOrElse(Future.successful())
}
Edit
I have now corrected my code to add the applicable typing but now I get a "missing parameter type" error. This is my latest code:
(iv: Option[IV]) => iv map (i => ask(exchangeRateActor, i.getCurrency.getIsoCurrCode)).getOrElse(Future.successful[Null](null))
Any further ideas?