diff options
author | Paul Phillips <paulp@improving.org> | 2012-07-27 05:46:12 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-07-27 05:48:09 -0700 |
commit | f15dc74394c225cb6c323e96f107deb6ad0e9645 (patch) | |
tree | 6195b7599a1a26abb0fc500548b1c09da306845b /src/continuations | |
parent | a4bb3b679add3fec8c19f07cc717177c52f3dd92 (diff) | |
download | scala-f15dc74394c225cb6c323e96f107deb6ad0e9645.tar.gz scala-f15dc74394c225cb6c323e96f107deb6ad0e9645.tar.bz2 scala-f15dc74394c225cb6c323e96f107deb6ad0e9645.zip |
Eliminated all the current feature warnings.
This pretty much takes us down to deprecation and inliner warnings.
Diffstat (limited to 'src/continuations')
-rw-r--r-- | src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala b/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala index 017c8d24fd..211560e343 100644 --- a/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala +++ b/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala @@ -475,7 +475,7 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with val (prologue, rest) = (anfStats :+ anfExpr) span (s => !s.isInstanceOf[DefDef]) // find first case // println("rest: "+ rest) // val (defs, calls) = rest partition (_.isInstanceOf[DefDef]) - if (rest nonEmpty){ + if (rest.nonEmpty) { // the filter drops the ()'s emitted when transValue encountered a LabelDef val stats = prologue ++ (rest filter (_.isInstanceOf[DefDef])).reverse // ++ calls // println("REVERSED "+ (stats mkString ("{", "\n", "}"))) |