Skip to content

Commit

Permalink
remove references to LastMain. fixes #25508 (#25511)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored Jan 12, 2018
1 parent 899fde0 commit 052def7
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,9 @@ function fullname(m::Module)
end
mp = module_parent(m)
if mp === m
if mn !== :Main
return (mn,)
end
# top-level module, not Main, called :Main => prior Main module
n = (:Main,)
this = Main
while this !== m
if isdefined(this, :LastMain)
n = tuple(n..., :LastMain)
this = this.LastMain
else
error("no reference to module ", mn)
end
end
return n
return (mn,)
end
return tuple(fullname(mp)..., mn)
return (fullname(mp)..., mn)
end

"""
Expand Down

0 comments on commit 052def7

Please sign in to comment.