summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/Trees.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2011-12-22 15:33:59 +0100
committerPaul Phillips <paulp@improving.org>2011-12-22 19:32:47 -0800
commit7d3ec837a3883e1e79700ee7c8fe6ab3f7bbd73c (patch)
treede7761d59adc8eb5217ab3013ad211bae80d59e4 /src/compiler/scala/tools/nsc/ast/Trees.scala
parent91de7d6e65a2bc3096d3af5bd32f70e17627a02a (diff)
downloadscala-7d3ec837a3883e1e79700ee7c8fe6ab3f7bbd73c.tar.gz
scala-7d3ec837a3883e1e79700ee7c8fe6ab3f7bbd73c.tar.bz2
scala-7d3ec837a3883e1e79700ee7c8fe6ab3f7bbd73c.zip
Omit non-essential TypeApply trees.
Otherwise they cause type errors.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/Trees.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/Trees.scala4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala
index 85849cfad4..9668debbbb 100644
--- a/src/compiler/scala/tools/nsc/ast/Trees.scala
+++ b/src/compiler/scala/tools/nsc/ast/Trees.scala
@@ -257,10 +257,6 @@ trait Trees extends reflect.internal.Trees { self: Global =>
case _: DefTree | Function(_, _) | Template(_, _, _) =>
resetDef(tree)
tree.tpe = null
- tree match {
- case tree: DefDef => tree.tpt.tpe = null
- case _ => ()
- }
case tpt: TypeTree =>
if (tpt.wasEmpty) tree.tpe = null
case This(_) if tree.symbol != null && tree.symbol.isPackageClass =>