File tree 4 files changed +7
-7
lines changed 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ abstract class NodeSeq extends immutable.Sequence[Node] with SequenceTemplate[No
51
51
def apply (f : Node => Boolean ): NodeSeq = filter(f)
52
52
53
53
/** structural equality */
54
- override def equals (x : Any ) = x match {
54
+ override def equals (x : Any ): Boolean = x match {
55
55
case z: Node => (length == 1 ) && z == apply(0 )
56
56
case z: Seq [_] => sameElements(z)
57
57
case z: String => text == z
Original file line number Diff line number Diff line change 5
5
scala>
6
6
scala> res0: Int = 7
7
7
8
- scala> | | | | gcd: (Int,Int)Int
8
+ scala> | | | | gcd: (x: Int,y: Int)Int
9
9
10
10
scala> five: Int = 5
11
11
@@ -59,7 +59,7 @@ scala> defined class Foo
59
59
60
60
scala> defined class Bar
61
61
62
- scala> foo2bar: (Foo)Bar
62
+ scala> foo2bar: (foo: Foo)Bar
63
63
64
64
scala> bar: Bar = Bar(3)
65
65
@@ -206,11 +206,11 @@ missing combination Term
206
206
207
207
def f(e: Exp) = e match { // non-exhaustive warning here
208
208
^
209
- f: (Exp)Int
209
+ f: (e: Exp)Int
210
210
211
211
scala>
212
212
scala>
213
- plusOne: (Int)Int
213
+ plusOne: (x: Int)Int
214
214
res0: Int = 6
215
215
res0: java.lang.String = after reset
216
216
<console>:5: error: not found: value plusOne
Original file line number Diff line number Diff line change 1
1
defined class posingAs
2
- resolve: [A,B](A @posingAs[B])B
2
+ resolve: [A,B](x: A @posingAs[B])B
3
3
x: Any = 7
Original file line number Diff line number Diff line change 1
1
defined class xyz
2
- loopWhile: [T](=> Boolean)(=> Unit @xyz[T])Unit @xyz[T]
2
+ loopWhile: [T](cond: => Boolean)(body: => Unit @xyz[T])Unit @xyz[T]
3
3
test: ()Unit @xyz[Int]
You can’t perform that action at this time.
0 commit comments