diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-09-18 13:31:49 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-09-18 13:31:49 +0200 |
commit | 46c81c6be94152f8ecf3b9cfc27ca1bb393b46f1 (patch) | |
tree | 40d8c9a303a577b51fbf7ef294071de46165e391 /test/junit | |
parent | a757be140c2a6cfb5464c28f8a4aaa764c095306 (diff) | |
parent | 2c5199520b1c89a6b1e2bfbc734d0ceb620723a1 (diff) | |
download | scala-46c81c6be94152f8ecf3b9cfc27ca1bb393b46f1.tar.gz scala-46c81c6be94152f8ecf3b9cfc27ca1bb393b46f1.tar.bz2 scala-46c81c6be94152f8ecf3b9cfc27ca1bb393b46f1.zip |
Merge pull request #4719 from Ichoran/issue/8647
SI-8647 Used immutable scheme for mutable.BitSet to resolve canBuildFrom
Diffstat (limited to 'test/junit')
-rw-r--r-- | test/junit/scala/collection/mutable/BitSetTest.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/junit/scala/collection/mutable/BitSetTest.scala b/test/junit/scala/collection/mutable/BitSetTest.scala index d56cc45601..e832194989 100644 --- a/test/junit/scala/collection/mutable/BitSetTest.scala +++ b/test/junit/scala/collection/mutable/BitSetTest.scala @@ -28,4 +28,11 @@ class BitSetTest { littleBitSet &= bigBitSet assert(littleBitSet.toBitMask.length < bigBitSet.toBitMask.length, "Needlessly extended the size of bitset on &=") } + + @Test def test_SI8647() { + val bs = BitSet() + bs.map(_ + 1) // Just needs to compile + val xs = bs: SortedSet[Int] + xs.map(_ + 1) // Also should compile (did before) + } } |