diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 07:36:31 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 07:36:31 +0000 |
commit | 390ccacfe0caa4c07af6193dec3e172c0fcd7896 (patch) | |
tree | 001ff4a00bd9d8cab651d9bf245bfc795748d829 /src/library | |
parent | 661f1ba10e5062fd987c4cafe43ad1f0dc3f5491 (diff) | |
download | scala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.tar.gz scala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.tar.bz2 scala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.zip |
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"
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/reflect/Type.scala | 4 | ||||
-rw-r--r-- | src/library/scala/xml/NodeSeq.scala | 2 |
2 files changed, 3 insertions, 3 deletions
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 <b>should not be used in client code</b>. * <code>(formals1 ... formalsn) restpe</code> */ -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 <b>should not be used in client code</b>. */ @@ -56,7 +56,7 @@ case class PolyType(typeParams: List[Symbol], typeBounds: List[(Type, Type)], re /** This type is required by the compiler and <b>should not be used in client code</b>. */ -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 |