From 0eda4971c527424fbe8ed19996219114e650d6f9 Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Fri, 5 Apr 2024 11:25:35 +0200 Subject: [PATCH] fix: add ModuleStore check for import lookup --- src/imports.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imports.jl b/src/imports.jl index a23c92e3..24ab21ac 100644 --- a/src/imports.jl +++ b/src/imports.jl @@ -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