Skip to content

Commit cb2668b

Browse files
yuyichaoandreasnoack
authored andcommitted
Fix 0.6 typealias depwarn (#237)
1 parent af8bf9c commit cb2668b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
julia 0.5
2-
Compat 0.17.0
2+
Compat 0.18.0
33
DataStructures 0.5.0
44
SpecialFunctions 0.1.0

src/common.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
# covariant type notation, i.e. AbstractVector{<:Real}
1111
#
1212

13-
typealias RealArray{T<:Real,N} AbstractArray{T,N}
14-
typealias RealVector{T<:Real} AbstractArray{T,1}
15-
typealias RealMatrix{T<:Real} AbstractArray{T,2}
13+
@compat RealArray{T<:Real,N} = AbstractArray{T,N}
14+
@compat RealVector{T<:Real} = AbstractArray{T,1}
15+
@compat RealMatrix{T<:Real} = AbstractArray{T,2}
1616

17-
typealias IntegerArray{T<:Integer,N} AbstractArray{T,N}
18-
typealias IntegerVector{T<:Integer} AbstractArray{T,1}
19-
typealias IntegerMatrix{T<:Integer} AbstractArray{T,2}
17+
@compat IntegerArray{T<:Integer,N} = AbstractArray{T,N}
18+
@compat IntegerVector{T<:Integer} = AbstractArray{T,1}
19+
@compat IntegerMatrix{T<:Integer} = AbstractArray{T,2}
2020

21-
@compat typealias RealFP Union{Float32, Float64}
21+
@compat const RealFP = Union{Float32, Float64}
2222

2323
## conversion from real to fp types
2424

src/counts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
#################################################
88

9-
typealias IntUnitRange{T<:Integer} UnitRange{T}
9+
@compat IntUnitRange{T<:Integer} = UnitRange{T}
1010

1111
#### functions for counting a single list of integers (1D)
1212
"""

0 commit comments

Comments
 (0)