Permalink
Browse files

SI-6384 - correct owner of function argument

  • Loading branch information...
1 parent b3d0a64 commit 3281830c6e1eea40730e8532e6c74676cf0eff7e @phaller phaller committed Oct 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/continuations/plugin/scala/tools/selectivecps/SelectiveCPSTransform.scala
@@ -197,12 +197,12 @@ abstract class SelectiveCPSTransform extends PluginComponent with
val funDef = localTyper.typed(atPos(pos) {
ValDef(funSym, fun)
})
+ argSym.owner = fun.symbol
val expr2 = localTyper.typed(atPos(pos) {
Apply(Select(expr1, expr1.tpe.member(cpsNames.flatMapCatch)), List(Ident(funSym)))
})
- val exSym = currentOwner.newValueParameter(pos, cpsNames.ex).setInfo(ThrowableClass.tpe)
- exSym.owner = fun.symbol
+ val exSym = fun.symbol.newValueParameter(pos, cpsNames.ex).setInfo(ThrowableClass.tpe)
rhs.changeOwner(currentOwner -> fun.symbol)
import CODE._

0 comments on commit 3281830

Please sign in to comment.