diff options
Diffstat (limited to 'test/files/run/transform.scala')
-rw-r--r-- | test/files/run/transform.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/transform.scala b/test/files/run/transform.scala new file mode 100644 index 0000000000..250df95df0 --- /dev/null +++ b/test/files/run/transform.scala @@ -0,0 +1,8 @@ +object Test { + val x = 1 to 10 toBuffer + + def main(args: Array[String]): Unit = { + x transform (_ * 2) + assert(x.sum == (1 to 10).sum * 2) + } +} |