Skip to content

Commit

Permalink
Merge pull request #187 from JuliaIO/yyc/0.6
Browse files Browse the repository at this point in the history
Fix 0.6 depwarn about inner constructors
  • Loading branch information
yuyichao authored Feb 11, 2017
2 parents 34dcf31 + d22397f commit f884f0b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/JSON.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ lower(x::Real) = Float64(x)
const INDENT=true
const NOINDENT=false

type State{I}
@compat type State{I}
indentstep::Int
indentlen::Int
prefix::AbstractString
otype::Vector{Bool}
State(indentstep::Int) = new(indentstep,
0,
"",
Bool[])
(::Type{State{I}}){I}(indentstep::Int) = new{I}(indentstep,
0,
"",
Bool[])
end
State(indentstep::Int=0) = State{indentstep>0}(indentstep)

Expand Down

0 comments on commit f884f0b

Please sign in to comment.