From 390ccacfe0caa4c07af6193dec3e172c0fcd7896 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Sat, 30 May 2009 07:36:31 +0000 Subject: Named and default arguments - MethodTypes now have (params: List[Symbol]) - "copy"-methods for case classes - the "copy" object in the compiler is now called "treeCopy" --- src/library/scala/reflect/Type.scala | 4 ++-- src/library/scala/xml/NodeSeq.scala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/library') diff --git a/src/library/scala/reflect/Type.scala b/src/library/scala/reflect/Type.scala index 279a6f1695..3ce496f32d 100644 --- a/src/library/scala/reflect/Type.scala +++ b/src/library/scala/reflect/Type.scala @@ -48,7 +48,7 @@ case class TypeBounds(lo: Type, hi: Type) extends Type /** This type is required by the compiler and should not be used in client code. * (formals1 ... formalsn) restpe */ -case class MethodType(formals: List[Type], restpe: Type) extends Type +case class MethodType(formals: List[Symbol], restpe: Type) extends Type /** This type is required by the compiler and should not be used in client code. */ @@ -56,7 +56,7 @@ case class PolyType(typeParams: List[Symbol], typeBounds: List[(Type, Type)], re /** This type is required by the compiler and should not be used in client code. */ -class ImplicitMethodType(formals: List[Type], restpe: Type) +class ImplicitMethodType(formals: List[Symbol], restpe: Type) extends MethodType(formals, restpe) diff --git a/src/library/scala/xml/NodeSeq.scala b/src/library/scala/xml/NodeSeq.scala index 13e0566893..28d05f885b 100644 --- a/src/library/scala/xml/NodeSeq.scala +++ b/src/library/scala/xml/NodeSeq.scala @@ -51,7 +51,7 @@ abstract class NodeSeq extends immutable.Sequence[Node] with SequenceTemplate[No def apply(f: Node => Boolean): NodeSeq = filter(f) /** structural equality */ - override def equals(x: Any) = x match { + override def equals(x: Any): Boolean = x match { case z:Node => (length == 1) && z == apply(0) case z:Seq[_] => sameElements(z) case z:String => text == z -- cgit v1.2.3