Skip to content

Commit

Permalink
Fix #27276
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed May 30, 2018
1 parent 8241cb3 commit eeda06d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/InteractiveUtils/src/codeview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# displaying type warnings

function code_warntype_legacy_ir(io::IO, ci::Core.CodeInfo, rettype)
function code_warntype_legacy_ir(io::IO, src::Core.CodeInfo, rettype)
function slots_used(ci, slotnames)
used = falses(length(slotnames))
scan_exprs!(used, ci.code)
Expand Down
4 changes: 4 additions & 0 deletions stdlib/InteractiveUtils/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,7 @@ withenv("JULIA_EDITOR" => nothing, "VISUAL" => nothing, "EDITOR" => nothing) do
ENV["JULIA_EDITOR"] = "\"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl\" -w"
@test editor() == ["/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl", "-w"]
end

# Issue #27276
using InteractiveUtils: code_warntype_legacy_ir
code_warntype_legacy_ir(devnull, first(code_typed(+, Tuple{Int, Int}))...)

0 comments on commit eeda06d

Please sign in to comment.