Skip to content

Commit

Permalink
fix: fix scope error with duplicate schema name (#1569)
Browse files Browse the repository at this point in the history
* fix: fix scope error with duplicate schema name

Signed-off-by: he1pa <[email protected]>

* fmt

Signed-off-by: he1pa <[email protected]>

---------

Signed-off-by: he1pa <[email protected]>
  • Loading branch information
He1pa committed Aug 14, 2024
1 parent d0fade6 commit de87e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kclvm/sema/src/advanced_resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl<'ctx> AdvancedResolver<'ctx> {
let parent = *self.ctx.scopes.last().unwrap();
let local_scope = LocalSymbolScope::new(parent, start, end, kind);
let pkg_path = self.ctx.current_pkgpath.clone().unwrap();
let fqn_name = format!("{pkg_path}.{name}");
let fqn_name = format!("{pkg_path}.{filepath}.{name}");
let scope_ref = match self.gs.get_scopes().schema_scope_map.get(&fqn_name) {
Some(scope_ref) => scope_ref.clone(),
None => {
Expand Down

0 comments on commit de87e2d

Please sign in to comment.