Skip to content

Commit b71a43f

Browse files
committed
tweak compat fix
1 parent 125711f commit b71a43f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

REQUIRE

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

src/differentiate.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,7 @@ export symbolic_derivatives_1arg
195195

196196
# deprecated: for backward compatibility with packages that used
197197
# this unexported interface.
198-
if VERSION < v"0.4.0-dev+4319"
199-
derivative_rules = Array((Symbol,Expr),0)
200-
else
201-
derivative_rules = Array(Tuple{Symbol,Expr},0)
202-
end
198+
derivative_rules = Array(@Compat.compat(Tuple{Symbol,Expr}),0)
203199
for (s,ex) in symbolic_derivative_1arg_list
204200
push!(derivative_rules, (s, :(xp*$ex)))
205201
end

0 commit comments

Comments
 (0)