summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/reflect/Type.scala4
-rw-r--r--src/library/scala/xml/NodeSeq.scala2
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