mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 10:23:20 +00:00
Update eval.rs
This commit is contained in:
parent
d72f56462e
commit
6a8837aa8e
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ impl Context {
|
|||
Err(err) => {
|
||||
if let Expr::Accessor(acc) = attr.obj.as_ref() {
|
||||
if let Some(mod_ctx) = self.get_mod_ctx_from_acc(acc) {
|
||||
return mod_ctx.eval_const_ident(&attr.ident);
|
||||
if let Ok(obj) = mod_ctx.eval_const_ident(&attr.ident) {
|
||||
return Ok(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue