Skip to content

Commit ad0ddc6

Browse files
committed
Add AbstractDict
1 parent 7695d5c commit ad0ddc6

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ Currently, the `@compat` macro supports the following syntaxes:
244244
* `Complex32`, `Complex64`, and `Complex128` are now `ComplexF16`, `ComplexF32`, and
245245
`ComplexF64`, respectively ([#24647]).
246246

247+
* `Associative` is now `AbstractDict` ([#25012]).
248+
247249
## New macros
248250

249251
* `@__DIR__` has been added ([#18380])
@@ -392,4 +394,5 @@ includes this fix. Find the minimum version from there.
392394
[#24652]: https://github.com/JuliaLang/julia/issues/24652
393395
[#24657]: https://github.com/JuliaLang/julia/issues/24657
394396
[#24785]: https://github.com/JuliaLang/julia/issues/24785
397+
[#25012]: https://github.com/JuliaLang/julia/issues/25012
395398
[#25021]: https://github.com/JuliaLang/julia/issues/25021

src/Compat.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,12 @@ module Unicode
953953
end
954954
end
955955

956+
# 0.7.0-DEV.2951
957+
@static if !isdefined(Base, :AbstractDict)
958+
const AbstractDict = Associative
959+
export AbstractDict
960+
end
961+
956962
include("deprecated.jl")
957963

958964
end # module Compat

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,9 @@ module Test25021
997997
@test titlecase("firstname lastname") == "Firstname Lastname"
998998
end
999999

1000+
# 0.7.0-DEV.2951
1001+
@test AbstractDict === (isdefined(Base, :AbstractDict) ? Base.AbstractDict : Base.Associative)
1002+
10001003
if VERSION < v"0.6.0"
10011004
include("deprecated.jl")
10021005
end

0 commit comments

Comments
 (0)