Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for upcoming change to include #854

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
f = f.value
end
if isa(f, Function)
if isdefined(Base, :IncludeInto) && isa(f, Base.IncludeInto)
Keno marked this conversation as resolved.
Show resolved Hide resolved
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
Loading