Skip to content

Commit 5bd5e8c

Browse files
authored
Add BitSet (#407)
1 parent a75cf4f commit 5bd5e8c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ Currently, the `@compat` macro supports the following syntaxes:
211211

212212
* `isleaftype` is now `isconcrete` ([#23666])
213213

214+
* `IntSet` is now `BitSet` ([#24282])
215+
214216
## New macros
215217

216218
* `@__DIR__` has been added ([#18380])
@@ -343,4 +345,5 @@ includes this fix. Find the minimum version from there.
343345
[#23666]: https://github.com/JuliaLang/julia/issues/23666
344346
[#23812]: https://github.com/JuliaLang/julia/issues/23812
345347
[#23931]: https://github.com/JuliaLang/julia/issues/23931
348+
[#24282]: https://github.com/JuliaLang/julia/issues/24282
346349
[#22512]: https://github.com/JuliaLang/julia/issues/22532

src/Compat.jl

+6
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,12 @@ if VERSION < v"0.7.0-DEV.912"
709709
(*)(s1::Union{Char,AbstractString}, ss::Union{Char,AbstractString}...) = string(s1, ss...)
710710
end
711711

712+
# 0.7.0-DEV.2318
713+
@static if !isdefined(Base, :BitSet)
714+
const BitSet = IntSet
715+
export BitSet
716+
end
717+
712718
include("deprecated.jl")
713719

714720
end # module Compat

test/runtests.jl

+3
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,9 @@ end
850850
# 0.7
851851
@test 'a'*"b" == "a"*'b' == 'a'*'b' == "ab"
852852

853+
# 0.7
854+
@test 1 in BitSet(1:10)
855+
853856
if VERSION < v"0.6.0"
854857
include("deprecated.jl")
855858
end

0 commit comments

Comments
 (0)