summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-07-30 07:56:12 -0700
committerJason Zaugg <jzaugg@gmail.com>2013-01-29 19:18:20 +0100
commitd3f3394fbdfbc82111b9aff71f0e32e2ad578d98 (patch)
treee505fc7dfbf12329cbf30c62bdee0c53ba09d5e4 /src
parenteff78b852e8b866badf9b9738f896c2a31c05474 (diff)
downloadscala-d3f3394fbdfbc82111b9aff71f0e32e2ad578d98.tar.gz
scala-d3f3394fbdfbc82111b9aff71f0e32e2ad578d98.tar.bz2
scala-d3f3394fbdfbc82111b9aff71f0e32e2ad578d98.zip
[backport] Fix for SI-6154, VerifyError originating in uncurry.
Lhs still might be an Ident. Miguel did all the work, I just wrote it down in code form. (cherry picked from commit 48f8235822a2a100d6c4e8d3d7349df565ac6d40)
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/transform/UnCurry.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
index c07177ec10..f338e390bb 100644
--- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala
+++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
@@ -627,7 +627,7 @@ abstract class UnCurry extends InfoTransform
}
}
- case Assign(Select(_, _), _) =>
+ case Assign(_: RefTree, _) =>
withNeedLift(true) { super.transform(tree) }
case Assign(lhs, _) if lhs.symbol.owner != currentMethod || lhs.symbol.hasFlag(LAZY | ACCESSOR) =>