Skip to content

Commit

Permalink
Remove definition of >:
Browse files Browse the repository at this point in the history
Was added in #336
  • Loading branch information
martinholters committed Aug 31, 2018
1 parent e081312 commit d04166b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ Currently, the `@compat` macro supports the following syntaxes:
* `transcode` converts between UTF-xx string encodings in Julia 0.5 (as a lightweight
alternative to the LegacyStrings package) ([#17323])

* `>:`, a supertype operator for symmetry with `issubtype` (`A >: B` is equivalent to `B <: A`), can be used in 0.5 and earlier ([#20407]).

* `.&` and `.|` are short syntax for `broadcast(&, xs...)` and `broadcast(|, xs...)` (respectively) in Julia 0.6 (only supported on Julia 0.5 and above) ([#17623])

* `Compat.isapprox` with `nans` keyword argument ([#20022])
Expand Down Expand Up @@ -494,7 +492,6 @@ includes this fix. Find the minimum version from there.
[#20022]: https://github.com/JuliaLang/julia/issues/20022
[#20164]: https://github.com/JuliaLang/julia/issues/20164
[#20321]: https://github.com/JuliaLang/julia/issues/20321
[#20407]: https://github.com/JuliaLang/julia/issues/20407
[#20974]: https://github.com/JuliaLang/julia/issues/20974
[#21197]: https://github.com/JuliaLang/julia/issues/21197
[#21346]: https://github.com/JuliaLang/julia/issues/21346
Expand Down
9 changes: 0 additions & 9 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,6 @@ else
end
end

# julia #20407
@static if !isdefined(Base, :(>:))
# 0.6
const >: = let
_issupertype(a::ANY, b::ANY) = issubtype(b, a)
end
export >:
end

# julia#19088
if VERSION < v"0.6.0-dev.1256"
Base.take!(io::Base.AbstractIOBuffer) = takebuf_array(io)
Expand Down
4 changes: 0 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ else
end
end

# supertype operator
@test !(Int >: Integer)
@test Integer >: Int

# julia#19088
let io = IOBuffer()
write(io, "aaa")
Expand Down

0 comments on commit d04166b

Please sign in to comment.