Skip to content

Commit

Permalink
Display -> AbstractDisplay (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored Feb 3, 2018
1 parent fbc1559 commit 0668f9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Currently, the `@compat` macro supports the following syntaxes:

## Renaming

* `Display` is now `AbstractDisplay` ([#24831]).

* `$` is now `xor` or `` ([#18977])

Expand Down
6 changes: 6 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,12 @@ else
import Distributed
end

# 0.7.0-DEV.2695
@static if !isdefined(Base, :AbstractDisplay)
const AbstractDisplay = Display
export AbstractDisplay
end

# 0.7.0-DEV.3583
@static if !isdefined(Base, :lastindex)
const lastindex = endof
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,8 @@ end
@test !GC.enable(true)
@test GC.enable(true)

@test eltype(Base.Multimedia.displays) <: AbstractDisplay

# 0.7.0-DEV.3583
@test lastindex(zeros(4)) == 4
@test lastindex(zeros(4,4)) == 16
Expand Down

0 comments on commit 0668f9c

Please sign in to comment.