Skip to content

Commit 65e02c5

Browse files
committed
fix: properly access env for non FileServers
1 parent 4ffcfe1 commit 65e02c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type_inf.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function infer_type_decl(binding, state, scope)
148148
settype!(binding, refof(t))
149149
end
150150
else
151-
edt = get_eventual_datatype(refof(t), state.server.external_env)
151+
edt = get_eventual_datatype(refof(t), state.env)
152152
if edt !== nothing
153153
settype!(binding, edt)
154154
end
@@ -306,7 +306,7 @@ function infer_eltype(x::EXPR, state)
306306
if r isa Binding && CoreTypes.isdatatype(r.type)
307307
return r
308308
end
309-
edt = get_eventual_datatype(r, state.server.external_env)
309+
edt = get_eventual_datatype(r, state.env)
310310
if edt isa SymbolServer.DataTypeStore
311311
return edt
312312
end

0 commit comments

Comments
 (0)