diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-02-05 14:26:42 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-02-05 16:52:14 +0100 |
commit | f914350f8f5fecce7350a4c7e1a6c2fe447c7324 (patch) | |
tree | 0d5def1e3a0c39bf896ef1b05bcb5c290fe362e9 /src/compiler | |
parent | ffc2389840852a120fecd772206d55db9a79f30e (diff) | |
download | scala-f914350f8f5fecce7350a4c7e1a6c2fe447c7324.tar.gz scala-f914350f8f5fecce7350a4c7e1a6c2fe447c7324.tar.bz2 scala-f914350f8f5fecce7350a4c7e1a6c2fe447c7324.zip |
Fixes https://issues.scala-lang.org/browse/SI-5272
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Reifiers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Reifiers.scala b/src/compiler/scala/tools/nsc/ast/Reifiers.scala index 952110ade2..ef87925959 100644 --- a/src/compiler/scala/tools/nsc/ast/Reifiers.scala +++ b/src/compiler/scala/tools/nsc/ast/Reifiers.scala @@ -281,9 +281,9 @@ trait Reifiers { self: Global => private def reifyTree(tree: Tree): Tree = tree match { case EmptyTree => reifyMirrorObject(EmptyTree) - case This(_) if !(boundSyms contains tree.symbol) => + case This(_) if tree.symbol != NoSymbol && !(boundSyms contains tree.symbol) => reifyFree(tree) - case Ident(_) if !(boundSyms contains tree.symbol) => + case Ident(_) if tree.symbol != NoSymbol && !(boundSyms contains tree.symbol) => if (tree.symbol.isVariable && tree.symbol.owner.isTerm) { captureVariable(tree.symbol) // Note order dependency: captureVariable needs to come before reifyTree here. mirrorCall("Select", reifyFree(tree), reifyName(nme.elem)) |