diff options
author | Martin Odersky <odersky@gmail.com> | 2009-05-26 14:59:29 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-05-26 14:59:29 +0000 |
commit | e484f312b5c1bcd9b2573d7e8530cea861ab72a3 (patch) | |
tree | 981b2e1c5b0c10f5930e2cb886ae2c7cd2f38168 | |
parent | d73a2965746b3cc0bdeb3f96fed342143deae210 (diff) | |
download | scala-e484f312b5c1bcd9b2573d7e8530cea861ab72a3.tar.gz scala-e484f312b5c1bcd9b2573d7e8530cea861ab72a3.tar.bz2 scala-e484f312b5c1bcd9b2573d7e8530cea861ab72a3.zip |
fixed build problem
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/Trees.scala | 7 |
1 files changed, 5 insertions, 2 deletions
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 } |