Skip to content

Commit 13af9b1

Browse files
committed
Fix some invalidations
1 parent a2c3f14 commit 13af9b1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/packagedef.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ function get_expressions(id::PkgId, filename)
11361136
return fi.modexsigs
11371137
end
11381138

1139-
function add_definitions_from_repl(filename)
1139+
function add_definitions_from_repl(filename::String)
11401140
hist_idx = parse(Int, filename[6:end-1])
11411141
hp = (Base.active_repl::REPL.LineEditREPL).interface.modes[1].hist::REPL.REPLHistoryProvider
11421142
src = hp.history[hp.start_idx+hist_idx]
@@ -1149,6 +1149,7 @@ function add_definitions_from_repl(filename)
11491149
push!(pkgdata, filename=>fi)
11501150
return fi
11511151
end
1152+
add_definitions_from_repl(filename::AbstractString) = add_definitions_from_repl(convert(String, filename)::String)
11521153

11531154
function update_stacktrace_lineno!(trace)
11541155
local nrep

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ function hasfile(info, file)
163163
fileindex(info, file) !== nothing
164164
end
165165

166-
function fileinfo(pkgdata::PkgData, file::AbstractString)
166+
function fileinfo(pkgdata::PkgData, file::String)
167167
i = fileindex(pkgdata, file)
168168
i === nothing && error("file ", file, " not found")
169169
return pkgdata.fileinfos[i]
170170
end
171-
fileinfo(pkgdata::PkgData, i::Integer) = pkgdata.fileinfos[i]
171+
fileinfo(pkgdata::PkgData, i::Int) = pkgdata.fileinfos[i]
172172

173173
function Base.push!(pkgdata::PkgData, pr::Pair{<:Any,FileInfo})
174174
push!(srcfiles(pkgdata), pr.first)

0 commit comments

Comments
 (0)