From e484f312b5c1bcd9b2573d7e8530cea861ab72a3 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 26 May 2009 14:59:29 +0000 Subject: fixed build problem --- src/compiler/scala/tools/nsc/ast/Trees.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala index 0f08598157..736c9210ef 100644 --- a/src/compiler/scala/tools/nsc/ast/Trees.scala +++ b/src/compiler/scala/tools/nsc/ast/Trees.scala @@ -221,7 +221,7 @@ trait Trees { equals0(this0.productElement(i), that0.productElement(i)) val b = results.foldLeft(true)((x,y) => x && y) if (b) (this,that) match { - case (this0 : TypeTree,that0 : TypeTree) if this0.original != null && that0.original != null => + case (this0 : TypeTree, that0 : TypeTree) if this0.original != null && that0.original != null => this0.original.equalsStructure0(that0.original)(f) case _ => true } else false @@ -818,7 +818,10 @@ trait Trees { setPos(SyntheticPosition(tree)) } - def original: Tree = pos.asInstanceOf[SyntheticPosition].original + def original: Tree = pos match { + case SyntheticPosition(orig) => orig + case _ => null + } override def isEmpty = (tpe eq null) || tpe == NoType } -- cgit v1.2.3