blob: e47269a96217b87dc30cc57370569ec170d757f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import scala.collection.mutable.HashSet
object Test extends dotty.runtime.LegacyApp {
val h = new HashSet[Int]
h += 1
println(s"remove 0 should be false, was ${h remove 0}")
println(s"contains 1 should be true, was ${h contains 1}")
println(s"remove 1 should be true, was ${h remove 1}")
println(s"contains 1 should be false, was ${h contains 1}")
println(s"remove 1 should be false, was ${h remove 1}")
println(s"contains 1 should be false, was ${h contains 1}")
}
|