Skip to content

Commit

Permalink
more specific VERSION cutoff for where syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman authored Mar 10, 2017
1 parent f2d751c commit 1f247ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statictype.jl
Original file line number Diff line number Diff line change
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 1f247ea

Please sign in to comment.