summaryrefslogtreecommitdiff
path: root/test/files/run/t4398.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-07-11 15:17:45 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-07-11 15:17:45 +0000
commit7ed18f3300c537600eceaa6b954a867aef91cb81 (patch)
tree08c00ee5cf26f9d0f4a1dd583c2b3ac3db9ada6b /test/files/run/t4398.scala
parent9f39fc01244e953290b4734ed135ff4e91d4344e (diff)
downloadscala-7ed18f3300c537600eceaa6b954a867aef91cb81.tar.gz
scala-7ed18f3300c537600eceaa6b954a867aef91cb81.tar.bz2
scala-7ed18f3300c537600eceaa6b954a867aef91cb81.zip
Fixes #4398.
Review by extempore.
Diffstat (limited to 'test/files/run/t4398.scala')
-rw-r--r--test/files/run/t4398.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t4398.scala b/test/files/run/t4398.scala
new file mode 100644
index 0000000000..1d57eb688d
--- /dev/null
+++ b/test/files/run/t4398.scala
@@ -0,0 +1,11 @@
+
+
+object Test {
+ def main(args: Array[String]) {
+ val x = 1 to 10 toSet
+ val y = x + 5
+ val z = y - 154321
+ assert(x eq y)
+ assert(x eq z)
+ }
+}