summaryrefslogtreecommitdiff
path: root/test/files/run/transform.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/transform.scala')
-rw-r--r--test/files/run/transform.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/transform.scala b/test/files/run/transform.scala
index 5cc1c49d6f..d73155ceec 100644
--- a/test/files/run/transform.scala
+++ b/test/files/run/transform.scala
@@ -1,6 +1,6 @@
object Test {
- val x = 1 to 10 toBuffer
-
+ val x = (1 to 10).toBuffer
+
def main(args: Array[String]): Unit = {
x transform (_ * 2)
assert(x.sum == (1 to 10).sum * 2)