diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-09-11 14:56:13 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-09-11 14:56:13 +0200 |
commit | 3b35177e7620da91e8c77ed5d16ef168b64e58b8 (patch) | |
tree | fef119e2680e3378aa202207e2b7ed482a5258db /src/compiler/scala/tools/nsc/transform/UnCurry.scala | |
parent | 7c8eaef41cacaa34cd691fb81e58d2d80428c661 (diff) | |
download | scala-3b35177e7620da91e8c77ed5d16ef168b64e58b8.tar.gz scala-3b35177e7620da91e8c77ed5d16ef168b64e58b8.tar.bz2 scala-3b35177e7620da91e8c77ed5d16ef168b64e58b8.zip |
This ensures that typechecking custom unapplications in silent mode
doesn't leak uncatchable errors. Interestingly enough, the problem
only manifested itself for custom unapply methods, not for synthetic
ones generated for case classes.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/UnCurry.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/UnCurry.scala | 2 |
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 9b85f1b36a..3544dc9966 100644 --- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala +++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala @@ -459,7 +459,7 @@ abstract class UnCurry extends InfoTransform case UnApply(fn, args) => val fn1 = transform(fn) val args1 = fn.symbol.name match { - case nme.unapplySeq => transformArgs(tree.pos, fn.symbol, args, patmat.alignPatterns(tree).expectedTypes) + case nme.unapplySeq => transformArgs(tree.pos, fn.symbol, args, patmat.alignPatterns(global.typer.context, tree).expectedTypes) case _ => args } treeCopy.UnApply(tree, fn1, args1) |