Reputation: 427
I'm trying to get this tutorial to work but they seem to have an issue. I get an error in this piece of code:
(helloActor ? SayHello(name)).mapTo[String].map { message => Ok(message) }
not found: value SayHello
It seems that SayHello(name)
is not in the scope of the Application class.
Upvotes: 0
Views: 111
Reputation: 7247
You need to import the SayHello
class. Since the class is defined in the companion object of HelloActor
, it is not visible by default outside that object.
Upvotes: 1