summaryrefslogtreecommitdiff
path: root/test/files/neg/viewtest.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-11-18 22:06:03 +0000
committerPaul Phillips <paulp@improving.org>2009-11-18 22:06:03 +0000
commitae024cebd4a41339039f3df91c8aa4a02522594f (patch)
tree07c5e3a27ce4636f76eb73fe43353fc6c6aa0362 /test/files/neg/viewtest.scala
parent536955e1afd68ac6f99f0347fa14a58ab47cb958 (diff)
downloadscala-ae024cebd4a41339039f3df91c8aa4a02522594f.tar.gz
scala-ae024cebd4a41339039f3df91c8aa4a02522594f.tar.bz2
scala-ae024cebd4a41339039f3df91c8aa4a02522594f.zip
Finally completed the incredibly tedious task o...
Finally completed the incredibly tedious task of removing the lower case primitive aliases from Predef. Had to rebuild msil.jar along the way.
Diffstat (limited to 'test/files/neg/viewtest.scala')
-rw-r--r--test/files/neg/viewtest.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/files/neg/viewtest.scala b/test/files/neg/viewtest.scala
index 778e672d91..5e7d624d23 100644
--- a/test/files/neg/viewtest.scala
+++ b/test/files/neg/viewtest.scala
@@ -12,13 +12,13 @@ trait Ordered[+a] {
*/
def compareTo [b >: a <% Ordered[b]](that: b): Int
- def < [b >: a <% Ordered[b]](that: b): boolean = (this compareTo that) < 0
+ def < [b >: a <% Ordered[b]](that: b): Boolean = (this compareTo that) < 0
- def > [b >: a <% Ordered[b]](that: b): boolean = (this compareTo that) > 0
+ def > [b >: a <% Ordered[b]](that: b): Boolean = (this compareTo that) > 0
- def <= [b >: a <% Ordered[b]](that: b): boolean = (this compareTo that) <= 0
+ def <= [b >: a <% Ordered[b]](that: b): Boolean = (this compareTo that) <= 0
- def >= [b >: a <% Ordered[b]](that: b): boolean = (this compareTo that) >= 0
+ def >= [b >: a <% Ordered[b]](that: b): Boolean = (this compareTo that) >= 0
}
@@ -30,9 +30,9 @@ object O {
case _ => -(y compareTo x)
}
}
- implicit def view2(x: char): Ordered[char] = new Ordered[char] {
- def compareTo [b >: char <% Ordered[b]](y: b): Int = y match {
- case y1: char => x - y1
+ implicit def view2(x: Char): Ordered[Char] = new Ordered[Char] {
+ def compareTo [b >: Char <% Ordered[b]](y: b): Int = y match {
+ case y1: Char => x - y1
case _ => -(y compareTo x)
}
}
@@ -106,7 +106,7 @@ object Test {
Console.println(t.elements)
}
{
- var t: Tree[List[char]] = Empty
+ var t: Tree[List[Char]] = Empty
for (s <- args) {
t = t insert toCharList(s)
}