Added explicit type of def context in TypedActor

This commit is contained in:
Patrik Nordwall 2012-01-09 09:25:02 +01:00
parent 3f8f8632cc
commit 1c6761c811

View file

@ -259,7 +259,7 @@ object TypedActor extends ExtensionId[TypedActorExtension] with ExtensionIdProvi
/**
* Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.
*/
def context = currentContext.get match {
def context: ActorContext = currentContext.get match {
case null throw new IllegalStateException("Calling TypedActor.context outside of a TypedActor implementation method!")
case some some
}