Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 0.6 abstract type declaration depwarn #270

Merged
merged 1 commit into from
Feb 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.4
Compat 0.9.4
Compat 0.17.0
4 changes: 2 additions & 2 deletions src/container_loops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Base.values
## iteration.


abstract AbstractExcludeLast{ContainerType <: SAContainer}
@compat abstract type AbstractExcludeLast{ContainerType <: SAContainer} end

immutable SDMExcludeLast{ContainerType <: SDMContainer} <:
AbstractExcludeLast{ContainerType}
Expand All @@ -38,7 +38,7 @@ eltype(s::AbstractExcludeLast) = eltype(s.m)
## This holds an object describing an include-last
## iteration.

abstract AbstractIncludeLast{ContainerType <: SAContainer}
@compat abstract type AbstractIncludeLast{ContainerType <: SAContainer} end



Expand Down
4 changes: 2 additions & 2 deletions src/heaps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
# HT: handle type
# VT: value type

abstract AbstractHeap{VT}
@compat abstract type AbstractHeap{VT} end

abstract AbstractMutableHeap{VT,HT} <: AbstractHeap{VT}
@compat abstract type AbstractMutableHeap{VT,HT} <: AbstractHeap{VT} end

# comparer

Expand Down
2 changes: 1 addition & 1 deletion src/list.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
abstract LinkedList{T}
@compat abstract type LinkedList{T} end

type Nil{T} <: LinkedList{T}
end
Expand Down
8 changes: 3 additions & 5 deletions src/tokens.jl
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
## Token interface to a container. A token is the address
## of an item in a container. The token has two parts: the
## container and the item's address. The address is of type
## AbstractSemiToken.
## AbstractSemiToken.


module Tokens

using Compat

abstract AbstractSemiToken
@compat abstract type AbstractSemiToken end

immutable IntSemiToken <: AbstractSemiToken
address::Int
end

end