Skip to content

Commit 56c4902

Browse files
yuyichaojrevels
authored andcommitted
Fix 0.6 abstract type declaration depwarn (#102)
1 parent b3a4d59 commit 56c4902

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
julia 0.4
2-
Compat 0.9.1
2+
Compat 0.17.0

src/Calculus.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ module Calculus
1515
second_derivative
1616

1717
# TODO: Debate type system more carefully
18-
# abstract BundledFunction
19-
# abstract ScalarFunction
20-
# abstract VectorFunction
21-
# abstract ForwardDifference
22-
# abstract CentralDifference
23-
# abstract ComplexDifference
24-
# abstract GradientEstimator
25-
# abstract HessianEstimator
18+
# abstract type BundledFunction end
19+
# abstract type ScalarFunction end
20+
# abstract type VectorFunction end
21+
# abstract type ForwardDifference end
22+
# abstract type CentralDifference end
23+
# abstract type ComplexDifference end
24+
# abstract type GradientEstimator end
25+
# abstract type HessianEstimator end
2626

2727
# typealias NonDifferentiableFunction Function
2828
# type DifferentiableFunction

src/symbolic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import Base.show, Base.(==)
1212
#
1313
#################################################################
1414

15-
abstract Symbolic
16-
abstract AbstractVariable <: Symbolic
15+
Compat.@compat abstract type Symbolic end
16+
Compat.@compat abstract type AbstractVariable <: Symbolic end
1717
Compat.@compat typealias SymbolicVariable Union{Symbol, AbstractVariable}
1818

1919

0 commit comments

Comments
 (0)