Skip to content

Commit

Permalink
run lowerdeps in import!
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashi Gowda committed Jun 18, 2018
1 parent e15615a commit 3808d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ lowerdeps(xs::AbstractArray) = Dict(
lowerdeps(x::Sync) = Dict("type"=>"sync_block",
"data" => map(lowerdeps, x.xs))

function import!(scope, xs)
push!(scope.imports, xs)
function import!(scope, x)
push!(scope.imports, lowerdeps(x))
end

Base.@deprecate adddeps!(scope, x) import!(scope, x)

0 comments on commit 3808d2d

Please sign in to comment.