Skip to content

Commit df268cd

Browse files
authored
Merge pull request #878 from julia-vscode/op-resolve
make op_resolve_up_scopes more robust
2 parents 3ffd6f5 + 7fded65 commit df268cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utilities.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ function resolve_op_ref(x::EXPR, server)
408408
end
409409

410410
function op_resolve_up_scopes(x, mn, scope, server)
411+
scope isa StaticLint.Scope || return false
411412
if StaticLint.scopehasbinding(scope, mn)
412413
StaticLint.setref!(x, scope.names[mn])
413414
return true

0 commit comments

Comments
 (0)