Skip to content

Commit

Permalink
fix: add ModuleStore check for import lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Apr 5, 2024
1 parent e219224 commit 0eda497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function _get_field(par, arg, state)
end
for used_module_name in par.used_modules
used_module = maybe_lookup(par[used_module_name], state)
if used_module !== nothing && isexportedby(Symbol(arg_str_rep), used_module)
if used_module isa SymbolServer.ModuleStore && isexportedby(Symbol(arg_str_rep), used_module)
return used_module[Symbol(arg_str_rep)]
end
end
Expand Down

0 comments on commit 0eda497

Please sign in to comment.