mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: minor bugs
This commit is contained in:
parent
0ff47efeb3
commit
70f2fe0234
5 changed files with 26 additions and 8 deletions
|
@ -500,6 +500,10 @@ impl Context {
|
|||
}
|
||||
let ctx = self.get_singular_ctx(namespace.as_ref(), &self.name)?;
|
||||
if let Some((typ, _)) = ctx.rec_local_get_type(t.ident.inspect()) {
|
||||
let vi = ctx
|
||||
.rec_get_var_info(&t.ident, AccessKind::Name, &self.cfg.input, &self.name)
|
||||
.unwrap();
|
||||
self.inc_ref(&vi, &t.ident.name);
|
||||
// TODO: visibility check
|
||||
Ok(typ.clone())
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue