Skip to content

Commit 2824793

Browse files
authored
type pirate the nop Some conversion fix (#232)
1 parent 4265ae9 commit 2824793

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/JuliaInterpreter.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ withenv("JULIA_LOAD_PATH" => joinpath(@__DIR__, "..")) do
3131
end
3232
include_dependency(gen_builtins_file)
3333

34+
# "Backport" of https://github.com/JuliaLang/julia/pull/31536
35+
if VERSION < v"1.2.0-DEV.572"
36+
Base.convert(::Type{Some{T}}, x::Some{T}) where {T} = x
37+
end
38+
3439
include("types.jl")
3540
include("utils.jl")
3641
include("construct.jl")

0 commit comments

Comments
 (0)