@@ -27,16 +27,19 @@ mutable struct Reflection
2727 code_info:: CodeInfo
2828end
2929
30- if VERSION < v " 1.1.0-DEV.762"
30+ @static if VERSION < v " 1.1.0-DEV.762"
3131 copy_code_info (code_info) = Core. Compiler. copy_code_info (code_info)
3232else
3333 copy_code_info (code_info) = copy (code_info)
3434end
3535
36- if VERSION < v " 1.2.0-DEV.573"
37- specialize_method (method, metharg, methsp, world, force) = Core. Compiler. code_for_method (method, metharg, methsp, world, force)
36+ @static if VERSION ≥ v " 1.8.0-DEV.369"
37+ # https://github.com/JuliaLang/julia/pull/41920
38+ specialize_method (method, metharg, methsp, world, preexisting) = Core. Compiler. specialize_method (method, metharg, methsp; preexisting)
39+ elseif VERSION < v " 1.2.0-DEV.573"
40+ specialize_method (method, metharg, methsp, world, preexisting) = Core. Compiler. code_for_method (method, metharg, methsp, world, preexisting)
3841else
39- specialize_method (method, metharg, methsp, world, force ) = Core. Compiler. specialize_method (method, metharg, methsp, force )
42+ specialize_method (method, metharg, methsp, world, preexisting ) = Core. Compiler. specialize_method (method, metharg, methsp, preexisting )
4043end
4144
4245function overdubbed_iterate (ctx, iterate)
0 commit comments