Skip to content

Commit 8e9e960

Browse files
committed
Update typealias to a const
Part of JuliaLang/julia#20418
1 parent 2b0c0a6 commit 8e9e960

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Olson.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ type Rule
5151
end
5252
end
5353

54-
typealias ZoneDict Dict{AbstractString,Array{Zone}}
55-
typealias RuleDict Dict{AbstractString,Array{Rule}}
56-
typealias OrderedRuleDict Dict{AbstractString,Tuple{Array{Date},Array{Rule}}}
54+
const ZoneDict = Dict{AbstractString,Array{Zone}}
55+
const RuleDict = Dict{AbstractString,Array{Rule}}
56+
const OrderedRuleDict = Dict{AbstractString,Tuple{Array{Date},Array{Rule}}}
5757

5858
# Min and max years that we create DST transition DateTimes for (inclusive)
5959
const MIN_YEAR = year(typemin(DateTime)) # Essentially the begining of time

test/utils.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Base.isequal(a::Array{Expr}, b::Array{Expr}) = map(strip, a) == map(strip, b)
4343
],
4444
)
4545

46-
typealias I Integer
46+
const I = Integer
4747
@test isequal(
4848
optional(
4949
:(function ZonedDateTime(y::I, m::I=1, d::I=1, h::I=0, mi::I=0, s::I=0, ms::I=0, tz::TimeZone)

0 commit comments

Comments
 (0)