Skip to content

Commit 294d3b9

Browse files
Kenoaviatesk
andauthored
Prepare for upcoming change to include (#854)
* Prepare for upcoming change to `include` Prepares for JuliaLang/julia#55949. * Update src/lowered.jl Co-authored-by: Shuhei Kadowaki <[email protected]> --------- Co-authored-by: Shuhei Kadowaki <[email protected]>
1 parent 3306c02 commit 294d3b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lowered.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ function is_some_include(@nospecialize(f))
3333
f = f.value
3434
end
3535
if isa(f, Function)
36+
if @static isdefined(Base, :IncludeInto) && isa(f, Base.IncludeInto)
37+
return true
38+
end
3639
mod = Base.typename(typeof(f)).module
3740
return isdefined(mod, :include) && f === (@isdefined(getglobal) ? getglobal(mod, :include) : getfield(mod, :include))
3841
end

0 commit comments

Comments
 (0)