Skip to content

Commit

Permalink
tryfix inferred return type
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed May 4, 2024
1 parent 6eef115 commit 2010944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/REPL/src/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ function completions(string::String, pos::Int, context_module::Module=Main, shif
end
end
if !isempty(paths)
return sort!(paths, by=p->p.path), r, success
return sort!(paths, by=p->p.path), r::UnitRange{Int}, success
elseif !hint && was_expanded
return expanded::Completions # return incomplete expansion if can't do better
end
Expand Down Expand Up @@ -1328,7 +1328,7 @@ function completions(string::String, pos::Int, context_module::Module=Main, shif

# Fallthrough allowed so that Latex symbols can be completed in strings
if success
return sort!(paths, by=p->p.path), r, success
return sort!(paths, by=p->p.path), r::UnitRange{Int}, success
elseif !hint && was_expanded
return expanded::Completions # return incomplete expansion if can't do better
end
Expand Down

0 comments on commit 2010944

Please sign in to comment.