summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sources/scala/List.scala2
-rw-r--r--test/files/pos/IntSet.scala2
-rw-r--r--test/pos/IntSet.scala2
3 files changed, 3 insertions, 3 deletions
diff --git a/sources/scala/List.scala b/sources/scala/List.scala
index a079ce4fcc..36ccf54451 100644
--- a/sources/scala/List.scala
+++ b/sources/scala/List.scala
@@ -275,7 +275,7 @@ trait List[a] extends Seq[a] {
else if (tail.isEmpty) head.toString() + end
else head.toString().concat(sep).concat(tail.mkString("", sep, end)));
- override def toString() = mkString("[", ",", "]");
+ override def toString() = mkString("List(", ",", ")");
/** Return a list formed from this list and the specified list
* <code>that</code> by associating each element of the former with
diff --git a/test/files/pos/IntSet.scala b/test/files/pos/IntSet.scala
index 639a099d9a..25d7070c94 100644
--- a/test/files/pos/IntSet.scala
+++ b/test/files/pos/IntSet.scala
@@ -5,7 +5,7 @@ trait IntSet {
def union(that: IntSet): IntSet;
}
object Empty extends IntSet {
- def contains(x: Int): Boolean = Boolean.False;
+ def contains(x: Int): Boolean = false;
def incl(x: Int): IntSet = new NonEmpty(x, Empty, Empty);
def foreach(f: Int => Unit): Unit = ();
def union(that: IntSet): IntSet = that;
diff --git a/test/pos/IntSet.scala b/test/pos/IntSet.scala
index 639a099d9a..25d7070c94 100644
--- a/test/pos/IntSet.scala
+++ b/test/pos/IntSet.scala
@@ -5,7 +5,7 @@ trait IntSet {
def union(that: IntSet): IntSet;
}
object Empty extends IntSet {
- def contains(x: Int): Boolean = Boolean.False;
+ def contains(x: Int): Boolean = false;
def incl(x: Int): IntSet = new NonEmpty(x, Empty, Empty);
def foreach(f: Int => Unit): Unit = ();
def union(that: IntSet): IntSet = that;