Skip to content

Commit

Permalink
work around JuliaLang/julia#39113
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub committed Jan 6, 2021
1 parent 21f054f commit e3da4b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/misctaggingtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ before_time = time()

@context ApplyCtx
x = rand()
applytest(x) = Core._apply(hypot, (x,), (1, x), 1, x, (1, 2))
@static if isdefined(Core, :_apply_iterate)
applytest(x) = Core._apply_iterate(iterate, hypot, (x,), (1, x), 1, x, (1, 2))
else
applytest(x) = Core._apply(hypot, (x,), (1, x), 1, x, (1, 2))
end
ctx = enabletagging(ApplyCtx(), 1)
@test overdub(ctx, applytest, tag(x, ctx)) === applytest(x)

Expand Down

0 comments on commit e3da4b9

Please sign in to comment.