summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-10-06 14:13:02 +0000
committerMartin Odersky <odersky@gmail.com>2006-10-06 14:13:02 +0000
commitaf995b1f8fa2787022ad3c09cfc8d4d9a46785f0 (patch)
tree8759b60545c31b3b204d2a5a6aebbf3bf54256e6 /src
parent5a4c34e338f5704bfaf60c1849aa55930f706b51 (diff)
downloadscala-af995b1f8fa2787022ad3c09cfc8d4d9a46785f0.tar.gz
scala-af995b1f8fa2787022ad3c09cfc8d4d9a46785f0.tar.bz2
scala-af995b1f8fa2787022ad3c09cfc8d4d9a46785f0.zip
fixed bug766
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 087f5c485f..0305a6123f 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1868,6 +1868,13 @@ trait Typers requires Analyzer {
if (settings.debug.value) System.out.println(""+tpt1+":"+tpt1.symbol+":"+tpt1.symbol.info);//debug
errorTree(tree, "wrong number of type arguments for "+tpt1.tpe+", should be "+tparams.length)
}
+
+ case TypeTree() =>
+ // we should get here only when something before failed
+ // and we try again (@see tryTypedApply). In that case we can assign
+ // whatever type to tree; we just have to survive until a real error message is issued.
+ tree setType AnyClass.tpe
+
case _ =>
throw new Error("unexpected tree: "+tree);//debug
}