Skip to content

Commit

Permalink
Fix invalidations for show(::MethodInstance) and `detect_ambiguitie…
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jan 14, 2021
1 parent 069ba19 commit a29b62f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ function show_mi(io::IO, l::Core.MethodInstance, from_stackframe::Bool=false)
# to print a little more identifying information.
if !from_stackframe
linetable = l.uninferred.linetable
line = isempty(linetable) ? "unknown" : (lt = linetable[1]; string(lt.file) * ':' * string(lt.line))
line = isempty(linetable) ? "unknown" : (lt = linetable[1]::Union{LineNumberNode,Core.LineInfoNode}; string(lt.file) * ':' * string(lt.line))
print(io, " from ", def, " starting at ", line)
end
end
Expand Down
2 changes: 1 addition & 1 deletion stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ Use `recursive=true` to test in all submodules.
`Union{}` type parameters are included; in most cases you probably
want to set this to `false`. See [`Base.isambiguous`](@ref).
"""
function detect_ambiguities(mods...;
function detect_ambiguities(mods::Module...;
recursive::Bool = false,
ambiguous_bottom::Bool = false)
@nospecialize
Expand Down

0 comments on commit a29b62f

Please sign in to comment.