summaryrefslogtreecommitdiff
path: root/test/files/run/comparable-comparator.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/comparable-comparator.scala')
-rw-r--r--test/files/run/comparable-comparator.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/comparable-comparator.scala b/test/files/run/comparable-comparator.scala
index ac943c63bb..1707fb6e61 100644
--- a/test/files/run/comparable-comparator.scala
+++ b/test/files/run/comparable-comparator.scala
@@ -15,7 +15,8 @@ object Test {
def compare(p1: C2, p2: C2) = p2.s compareTo p1.s
}
- val strs = "zip foo bar baz aggle bing bong" split ' ' toList
+ val words = "zip foo bar baz aggle bing bong" split ' '
+ val strs = words.toList
val c1s = strs map (x => new C1(x))
val c2s = strs map (x => new C2(x))