Skip to content

Commit

Permalink
Import invokelatest from Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed May 15, 2017
1 parent b352658 commit 47667ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SymEngine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ __precompile__()
module SymEngine

import Base: show, convert, real, imag
import Compat: String, unsafe_string, @compat, denominator, numerator
import Compat: String, unsafe_string, @compat, denominator, numerator, invokelatest

export Basic, symbols, @vars
export free_symbols, get_args
Expand Down
2 changes: 1 addition & 1 deletion src/subs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function _lambdify(ex::Basic, vars)
fn = eval(Expr(:function,
Expr(:call, gensym(), map(Symbol,vars)...),
body))
(args...) -> Base.invokelatest(fn, args...) # https://github.com/JuliaLang/julia/pull/19784
(args...) -> invokelatest(fn, args...) # https://github.com/JuliaLang/julia/pull/19784
catch err
throw(ArgumentError("Expression does not lambdify"))
end
Expand Down

0 comments on commit 47667ea

Please sign in to comment.