Removing compilation warnings.

This commit is contained in:
Viktor Klang 2012-09-19 17:32:54 +02:00
parent 888f81df8d
commit d0c71d563e
6 changed files with 15 additions and 14 deletions

View file

@ -129,9 +129,7 @@ class TestkitDocSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
val actorRef = TestActorRef(new MyActor)
// hypothetical message stimulating a '42' answer
val future = actorRef ? Say42
val result = future.value.get match {
case Success(x: Int) x
}
val Success(result: Int) = future.value.get
result must be(42)
//#test-behavior
}