aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t4398.scala
blob: 5e152f727a9fb2ee59127d6ed8ea9fbf4512c179 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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)
  }
}