diff options
Diffstat (limited to 'tests/run/t4398.scala')
-rw-r--r-- | tests/run/t4398.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run/t4398.scala b/tests/run/t4398.scala new file mode 100644 index 000000000..5e152f727 --- /dev/null +++ b/tests/run/t4398.scala @@ -0,0 +1,13 @@ + + +import scala.language.{ postfixOps } + +object Test { + def main(args: Array[String]): Unit = { + val x = 1 to 10 toSet + val y = x + 5 + val z = y - 154321 + assert(x eq y) + assert(x eq z) + } +} |