Skip to content

Commit

Permalink
Prepare for upcoming change to include
Browse files Browse the repository at this point in the history
Prepares for JuliaLang/julia#55949.
  • Loading branch information
Keno committed Oct 3, 2024
1 parent 0ed87d4 commit 2b4f427
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lowered.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 37 in src/lowered.jl

View check run for this annotation

Codecov / codecov/patch

src/lowered.jl#L37

Added line #L37 was not covered by tests
end
mod = Base.typename(typeof(f)).module
return isdefined(mod, :include) && f === (@isdefined(getglobal) ? getglobal(mod, :include) : getfield(mod, :include))
end
Expand Down

0 comments on commit 2b4f427

Please sign in to comment.