diff --git a/src/lowered.jl b/src/lowered.jl index 1533213c..e0de9e2e 100644 --- a/src/lowered.jl +++ b/src/lowered.jl @@ -33,6 +33,9 @@ function is_some_include(@nospecialize(f)) f = f.value end if isa(f, Function) + if isdefined(Base, :IncludeInto) && isa(f, Base.IncludeInto) + return true + end mod = Base.typename(typeof(f)).module return isdefined(mod, :include) && f === (@isdefined(getglobal) ? getglobal(mod, :include) : getfield(mod, :include)) end