summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-07-23 12:25:49 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-07-23 12:25:49 +1000
commit96fd54b2f05152bd433f288049ab929f9965b16d (patch)
tree1a3017c4d039ebe1c4d8e6a75395efbfbc2890f4 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parentf6756eaaa5504538f8fa23fc37f8728e56f76908 (diff)
parent0e9525aa618a2eca143a1c7379ff1e6efd23b86e (diff)
downloadscala-96fd54b2f05152bd433f288049ab929f9965b16d.tar.gz
scala-96fd54b2f05152bd433f288049ab929f9965b16d.tar.bz2
scala-96fd54b2f05152bd433f288049ab929f9965b16d.zip
Merge remote-tracking branch 'origin/2.11.x' into merge/2.11.x-to-2.12.x-20152307
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 2dfecbaea1..777ff388b6 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -4564,7 +4564,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
typed1(atPos(tree.pos)(Block(stats, Apply(expr, args) setPos tree.pos.makeTransparent)), mode, pt)
case Apply(fun, args) =>
normalTypedApply(tree, fun, args) match {
- case ArrayInstantiation(tree1) => typed(tree1, mode, pt)
+ case ArrayInstantiation(tree1) => if (tree1.isErrorTyped) tree1 else typed(tree1, mode, pt)
case Apply(Select(fun, nme.apply), _) if treeInfo.isSuperConstrCall(fun) => TooManyArgumentListsForConstructor(tree) //SI-5696
case tree1 => tree1
}