Skip to content

Commit 870fa83

Browse files
authored
Resolve binding MethodError directly on 1.12 (#664)
1 parent 4705aea commit 870fa83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jlgen.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function unsafe_function_from_type(ft::Type)
3232
Ref{ft}()[]
3333
end
3434
end
35+
global MethodError
3536
function MethodError(ft::Type{<:Function}, tt::Type, world::Integer=typemax(UInt))
3637
Base.MethodError(unsafe_function_from_type(ft), tt, world)
3738
end

0 commit comments

Comments
 (0)