Skip to content

Commit a535130

Browse files
authored
TypedSlot no longer exists upstream, so we need to use a dummy type instead on the latest (master) builds of Julia.
1 parent 203df3f commit a535130

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: src/Libtask.jl

+8-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ export TapedTask, consume, produce
88
export TArray, tzeros, tfill, TRef # legacy types back compat
99

1010

11-
const TypedSlot = @static if isdefined(Core, :TypedSlot) # Julia v1.10 removed Core.TypedSlot
12-
Core.TypedSlot
11+
@static if isdefined(Core, :TypedSlot) || isdefined(Core.Compiler, :TypedSlot)
12+
# Julia v1.10 removed Core.TypedSlot
13+
const TypedSlot = @static if isdefined(Core, :TypedSlot)
14+
Core.TypedSlot
15+
else
16+
Core.Compiler.TypedSlot
17+
end
1318
else
14-
Core.Compiler.TypedSlot
19+
struct TypedSlot end # Dummy
1520
end
1621

1722
include("tapedfunction.jl")

0 commit comments

Comments
 (0)