fixed bug in anon actor

This commit is contained in:
Jonas Bonér 2009-12-05 21:03:07 +01:00
parent 730cc9176a
commit 310742a22d

View file

@ -116,7 +116,7 @@ object Actor extends Logging {
*
*/
def actor[A](body: => Unit) = {
def handler[A](body: Unit) = new {
def handler[A](body: => Unit) = new {
def receive(handler: PartialFunction[Any, Unit]) = new Actor() {
start
body