Skip to content

Commit

Permalink
Fix 0.6 typealias depwarn (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao authored and andreasnoack committed Feb 14, 2017
1 parent af8bf9c commit cb2668b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.5
Compat 0.17.0
Compat 0.18.0
DataStructures 0.5.0
SpecialFunctions 0.1.0
14 changes: 7 additions & 7 deletions src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
# covariant type notation, i.e. AbstractVector{<:Real}
#

typealias RealArray{T<:Real,N} AbstractArray{T,N}
typealias RealVector{T<:Real} AbstractArray{T,1}
typealias RealMatrix{T<:Real} AbstractArray{T,2}
@compat RealArray{T<:Real,N} = AbstractArray{T,N}
@compat RealVector{T<:Real} = AbstractArray{T,1}
@compat RealMatrix{T<:Real} = AbstractArray{T,2}

typealias IntegerArray{T<:Integer,N} AbstractArray{T,N}
typealias IntegerVector{T<:Integer} AbstractArray{T,1}
typealias IntegerMatrix{T<:Integer} AbstractArray{T,2}
@compat IntegerArray{T<:Integer,N} = AbstractArray{T,N}
@compat IntegerVector{T<:Integer} = AbstractArray{T,1}
@compat IntegerMatrix{T<:Integer} = AbstractArray{T,2}

@compat typealias RealFP Union{Float32, Float64}
@compat const RealFP = Union{Float32, Float64}

## conversion from real to fp types

Expand Down
2 changes: 1 addition & 1 deletion src/counts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
#################################################

typealias IntUnitRange{T<:Integer} UnitRange{T}
@compat IntUnitRange{T<:Integer} = UnitRange{T}

#### functions for counting a single list of integers (1D)
"""
Expand Down

0 comments on commit cb2668b

Please sign in to comment.