Skip to content

Commit

Permalink
Fix 0.6 abstract type declaration depwarn
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
yuyichao committed Feb 11, 2017
1 parent b3a4d59 commit 480c5a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
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.1
Compat 0.17.0
16 changes: 8 additions & 8 deletions src/Calculus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ module Calculus
second_derivative

# TODO: Debate type system more carefully
# abstract BundledFunction
# abstract ScalarFunction
# abstract VectorFunction
# abstract ForwardDifference
# abstract CentralDifference
# abstract ComplexDifference
# abstract GradientEstimator
# abstract HessianEstimator
# abstract type BundledFunction end
# abstract type ScalarFunction end
# abstract type VectorFunction end
# abstract type ForwardDifference end
# abstract type CentralDifference end
# abstract type ComplexDifference end
# abstract type GradientEstimator end
# abstract type HessianEstimator end

# typealias NonDifferentiableFunction Function
# type DifferentiableFunction
Expand Down
4 changes: 2 additions & 2 deletions src/symbolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import Base.show, Base.(==)
#
#################################################################

abstract Symbolic
abstract AbstractVariable <: Symbolic
Compat.@compat abstract type Symbolic end
Compat.@compat abstract type AbstractVariable <: Symbolic end
Compat.@compat typealias SymbolicVariable Union{Symbol, AbstractVariable}


Expand Down

0 comments on commit 480c5a2

Please sign in to comment.