From e3da4b99cc8dccf1e59068ffeed62a54b0e0da52 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Wed, 6 Jan 2021 12:42:16 +0100 Subject: [PATCH] work around JuliaLang/julia#39113 --- test/misctaggingtests.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/misctaggingtests.jl b/test/misctaggingtests.jl index 9f43861..39e2451 100644 --- a/test/misctaggingtests.jl +++ b/test/misctaggingtests.jl @@ -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)