Skip to content

Commit

Permalink
Merge pull request #205 from tkelman/patch-1
Browse files Browse the repository at this point in the history
use more specific VERSION cutoffs
  • Loading branch information
TotalVerb committed Mar 14, 2017
2 parents 1dfcfd4 + 1f247ea commit 14da1fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/exprutils.jl
Expand Up @@ -66,14 +66,14 @@ Return the first entry of the given pair expression, determined lexically.
Note that on v0.5, this is the first argument of the expression, whereas on
v0.6, this is the second argument of the expression.
"""
lexicalfirst(x) = VERSION < v"0.6-" ? x.args[1] : x.args[2]
lexicalfirst(x) = VERSION < v"0.6.0-dev.2613" ? x.args[1] : x.args[2] # changed by julia PR #20327

"""
Return the last entry of the given pair expression, determined lexically. Note
that on v0.5, this is the second argument of the expression, whereas on v0.6,
this is the third argument of the expression.
"""
lexicallast(x) = VERSION < v"0.6-" ? x.args[2] : x.args[3]
lexicallast(x) = VERSION < v"0.6.0-dev.2613" ? x.args[2] : x.args[3] # changed by julia PR #20327

"""
Return `true` if the value represented by expression `x` is exactly `x` itself;
Expand Down
2 changes: 1 addition & 1 deletion src/statictype.jl
Expand Up @@ -9,7 +9,7 @@ return `Nullable(n)`. Otherwise, return `Nullable{Int}()`.
length(::Type{Union{}}) = Nullable(0)
length(::Type) = Nullable{Int}()
length{T<:Pair}(::Type{T}) = 2
if VERSION < v"0.6-"
if VERSION < v"0.6.0-dev.2123" # where syntax introduced by julia PR #18457
length{T<:Tuple}(::Type{T}) = Nullable{Int}(Base.length(T.parameters))
else
include_string("""
Expand Down

0 comments on commit 14da1fc

Please sign in to comment.