diff --git a/src/lowered.jl b/src/lowered.jl index e0de9e2e..bbf78eeb 100644 --- a/src/lowered.jl +++ b/src/lowered.jl @@ -33,7 +33,7 @@ function is_some_include(@nospecialize(f)) f = f.value end if isa(f, Function) - if isdefined(Base, :IncludeInto) && isa(f, Base.IncludeInto) + if @static isdefined(Base, :IncludeInto) && isa(f, Base.IncludeInto) return true end mod = Base.typename(typeof(f)).module