diff options
author | xuwei-k <6b656e6a69@gmail.com> | 2018-05-09 11:12:07 +0900 |
---|---|---|
committer | xuwei-k <6b656e6a69@gmail.com> | 2018-05-09 11:12:07 +0900 |
commit | 3f035632e37da0c484fcf43310857263e3470433 (patch) | |
tree | b0987e20a4d3a5d85ff94a1bb552b4e062f471d7 /src/main/scala/scala/async/internal/Lifter.scala | |
parent | 9de808535a546c49a04bd50c93212425f3344ba9 (diff) | |
download | scala-async-3f035632e37da0c484fcf43310857263e3470433.tar.gz scala-async-3f035632e37da0c484fcf43310857263e3470433.tar.bz2 scala-async-3f035632e37da0c484fcf43310857263e3470433.zip |
fix procedure syntax
Diffstat (limited to 'src/main/scala/scala/async/internal/Lifter.scala')
-rw-r--r-- | src/main/scala/scala/async/internal/Lifter.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/scala/async/internal/Lifter.scala b/src/main/scala/scala/async/internal/Lifter.scala index 3afe6d6..ff90576 100644 --- a/src/main/scala/scala/async/internal/Lifter.scala +++ b/src/main/scala/scala/async/internal/Lifter.scala @@ -17,12 +17,12 @@ trait Lifter { object companionship { private val companions = collection.mutable.Map[Symbol, Symbol]() private val companionsInverse = collection.mutable.Map[Symbol, Symbol]() - private def record(sym1: Symbol, sym2: Symbol) { + private def record(sym1: Symbol, sym2: Symbol): Unit = { companions(sym1) = sym2 companions(sym2) = sym1 } - def record(defs: List[Tree]) { + def record(defs: List[Tree]): Unit = { // Keep note of local companions so we rename them consistently // when lifting. val comps = for { @@ -86,7 +86,7 @@ trait Lifter { def liftableSyms: Set[Symbol] = { val liftableMutableSet = collection.mutable.Set[Symbol]() - def markForLift(sym: Symbol) { + def markForLift(sym: Symbol): Unit = { if (!liftableMutableSet(sym)) { liftableMutableSet += sym |