diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-09-26 15:05:36 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-09-26 16:39:19 +0200 |
commit | 7122560063b4cbe1e8012decbc842bf610e55863 (patch) | |
tree | b73e4804208e752248e6d60bfcbf96ece52a3987 /src/reflect | |
parent | bda48577d022811be58ce2b7f9e46890543ad45b (diff) | |
download | scala-7122560063b4cbe1e8012decbc842bf610e55863.tar.gz scala-7122560063b4cbe1e8012decbc842bf610e55863.tar.bz2 scala-7122560063b4cbe1e8012decbc842bf610e55863.zip |
transformers no longer ignore UnApply.fun
Second time's the charm. I remember trying to do exactly the same somewhen
around 2.10.0-M4, but then some continuations tests were failing.
Luckily, today everything went smoothly.
Please note that this fix changes the way that SI-5465 manifests itself.
Previously it produced type errors, now it simply crashes the compiler.
Therefore I had to attach the try/catch FatalError clause to invocations
of toolbox methods, so that compiler crashes get caught and translated to
ToolBoxErrors.
Also fixes SI-7871, and that clears the way for implementing quasiquotes
with conventional macros rather than relying on a special case in typer.
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/Trees.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/Trees.scala b/src/reflect/scala/reflect/internal/Trees.scala index 2163a26b84..9138a1c7bb 100644 --- a/src/reflect/scala/reflect/internal/Trees.scala +++ b/src/reflect/scala/reflect/internal/Trees.scala @@ -1381,7 +1381,7 @@ trait Trees extends api.Trees { self: SymbolTable => case Star(elem) => treeCopy.Star(tree, transform(elem)) case UnApply(fun, args) => - treeCopy.UnApply(tree, fun, transformTrees(args)) // bq: see test/.../unapplyContexts2.scala + treeCopy.UnApply(tree, transform(fun), transformTrees(args)) // bq: see test/.../unapplyContexts2.scala case ArrayValue(elemtpt, trees) => treeCopy.ArrayValue(tree, transform(elemtpt), transformTrees(trees)) case ApplyDynamic(qual, args) => |