Skip to content

Commit

Permalink
fixup! Add Compat.Dates for standard library Dates
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Nov 22, 2017
1 parent 72c5607 commit 4e6c2e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,12 @@ Currently, the `@compat` macro supports the following syntaxes:
`CartesianRange` now has two type parameters, so using them as
fields in other `struct`s requires manual intervention.

* `using Compat.Test`, `using Compat.SharedArrays`, `using Compat.Mmap`, `using
Compat.DelimitedFiles`, and `using Compat.Dates` are provided on versions older than 0.7,
where these are not yet part of the standard library. ([#23931] [#24459])
* `using Compat.Test`, `using Compat.SharedArrays`, `using Compat.Mmap`, and `using
Compat.DelimitedFiles` are provided on versions older than 0.7, where these are not yet
part of the standard library. ([#23931])

* `using Compat.Dates` is provided on versions older than 0.7, where this library is not
yet a part of the standard library. ([#24459])

## Module Aliases

Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,10 @@ module Test23876
@test isdefined(Mmap, :mmap)
end

# 0.7
module Test24459
using Compat
using Compat.Test
using Compat.Dates
@test isdefined(@__MODULE__, :Dates)
end
Expand Down

0 comments on commit 4e6c2e0

Please sign in to comment.