From 480c5a2994d5ccfa3542cb85c1355ad4efbb1e5e Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Fri, 10 Feb 2017 21:38:04 -0500 Subject: [PATCH] Fix 0.6 abstract type declaration depwarn [ci skip] --- REQUIRE | 2 +- src/Calculus.jl | 16 ++++++++-------- src/symbolic.jl | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/REQUIRE b/REQUIRE index a9ddc7e..c7eded8 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,2 +1,2 @@ julia 0.4 -Compat 0.9.1 +Compat 0.17.0 diff --git a/src/Calculus.jl b/src/Calculus.jl index 33e3450..2bf5f7a 100644 --- a/src/Calculus.jl +++ b/src/Calculus.jl @@ -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 diff --git a/src/symbolic.jl b/src/symbolic.jl index 55f6463..a21b19a 100644 --- a/src/symbolic.jl +++ b/src/symbolic.jl @@ -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}