Skip to content

Commit

Permalink
Fixed 0.6 abstract type ... end deprecation warnings using compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
rofinn committed Apr 28, 2017
1 parent ff76c5d commit 6ab08f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/weights.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
###### Weight vector #####

if VERSION < v"0.6.0-dev.2123"
abstract AbstractWeights{S<:Real, T<:Real, V<:RealVector} <: RealVector{T}
@compat abstract type AbstractWeights{S<:Real, T<:Real, V<:RealVector} <: RealVector{T} end
else
abstract AbstractWeights{S<:Real, T<:Real, V<:AbstractVector{T}} <: AbstractVector{T}
@compat abstract type AbstractWeights{S<:Real, T<:Real, V<:AbstractVector{T}} <: AbstractVector{T} end
end

"""
Expand Down

0 comments on commit 6ab08f6

Please sign in to comment.