Skip to content

Commit

Permalink
Unconditionally define range(start, stop)
Browse files Browse the repository at this point in the history
See #640.
  • Loading branch information
martinholters committed Jan 18, 2019
1 parent ce5d74b commit 8b486c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1850,9 +1850,11 @@ if VERSION < v"0.7.0-beta2.143"
end
end

if VERSION < v"1.1.0-DEV.506"
range(start, stop; kwargs...) = range(start; stop=stop, kwargs...)
end
# This definition should be modified to throw an ArgumentError if neither
# `step` nor `length` are given and be limited to VERSION < v"1.1.0-DEV.506".
# However, there is a release with this definition, so we need to keep it around
# to avoid breakage.
range(start, stop; kwargs...) = range(start; stop=stop, kwargs...)

include("deprecated.jl")

Expand Down

0 comments on commit 8b486c3

Please sign in to comment.