Permalink
Browse files

Changing impl.Promise to return this.type

  • Loading branch information...
viktorklang committed Apr 16, 2012
1 parent 4e166d2 commit 8ef8d3ea76ceb9075d66fd83c9f49c18209bab1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/library/scala/concurrent/impl/Promise.scala
@@ -22,7 +22,7 @@ import scala.annotation.tailrec
private[concurrent] trait Promise[T] extends scala.concurrent.Promise[T] with Future[T] {
- def future: scala.concurrent.Future[T] = this
+ def future: this.type = this
}

0 comments on commit 8ef8d3e

Please sign in to comment.