aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorBradley Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-30 09:21:34 -0400
committerGitHub <noreply@github.com>2025-07-30 09:21:34 -0400
commit97e83b6c825b451c44bdee207e9521bf2cc9c7a5 (patch)
treeca57caf0524600398526fd7eb3cd1da151dd22f9 /src/server
parent5263847aa5cb7ed2e2af029e60af557d82ac605f (diff)
parentc18e6222d276e119dad36fb5bb49553f187bb662 (diff)
Merge pull request #805 from BradLewis/fix/resolve-using-types
Fix issue looking up using package when resolving types
Diffstat (limited to 'src/server')
-rw-r--r--src/server/analysis.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin
index a7b7695..f483a75 100644
--- a/src/server/analysis.odin
+++ b/src/server/analysis.odin
@@ -1901,7 +1901,7 @@ internal_resolve_type_identifier :: proc(ast_context: ^AstContext, node: ast.Ide
for u in ast_context.usings {
for imp in ast_context.imports {
- if strings.compare(imp.base, u.pkg_name) == 0 {
+ if strings.compare(imp.name, u.pkg_name) == 0 {
if symbol, ok := lookup(node.name, imp.name); ok {
return resolve_symbol_return(ast_context, symbol)
}