diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-26 11:43:19 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-26 11:43:19 -0700 |
commit | 53cb251ae24d06ed9e1e98b39d9be4c5baaf3525 (patch) | |
tree | c0fd04642a3775ac9f23302f3891281ad51195bb /src/continuations | |
parent | 94ac4d5282d8bfb482f35af55e513344c24e70c1 (diff) | |
download | scala-53cb251ae24d06ed9e1e98b39d9be4c5baaf3525.tar.gz scala-53cb251ae24d06ed9e1e98b39d9be4c5baaf3525.tar.bz2 scala-53cb251ae24d06ed9e1e98b39d9be4c5baaf3525.zip |
Explicit type application in cps plugin.
-Xlint revealed a strange type was being inferred here.
Diffstat (limited to 'src/continuations')
-rw-r--r-- | src/continuations/library/scala/util/continuations/ControlContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/continuations/library/scala/util/continuations/ControlContext.scala b/src/continuations/library/scala/util/continuations/ControlContext.scala index 37e3f45a4f..0ad880f26a 100644 --- a/src/continuations/library/scala/util/continuations/ControlContext.scala +++ b/src/continuations/library/scala/util/continuations/ControlContext.scala @@ -101,7 +101,7 @@ final class ControlContext[+A,-B,+C](val fun: (A => B, Exception => B) => C, val @noinline final def map[A1](f: A => A1): ControlContext[A1,B,C] = { if (fun eq null) try { - new ControlContext(null, f(x)) // TODO: only alloc if f(x) != x + new ControlContext[A1,B,C](null, f(x)) // TODO: only alloc if f(x) != x } catch { case ex: Exception => new ControlContext((k: A1 => B, thr: Exception => B) => thr(ex).asInstanceOf[C], null.asInstanceOf[A1]) |