mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
Fix: alias decls cannot be made in py_compatible
mode
This commit is contained in:
parent
40a1764dd1
commit
4bfc2f4876
2 changed files with 37 additions and 9 deletions
|
@ -385,6 +385,7 @@ pub struct Context {
|
|||
pub(crate) tv_cache: Option<TyVarCache>,
|
||||
// for pylyzer, ignore this
|
||||
pub(crate) higher_order_caller: Vec<Str>,
|
||||
pub(crate) erg_to_py_names: Dict<Str, Str>,
|
||||
pub(crate) level: usize,
|
||||
}
|
||||
|
||||
|
@ -565,6 +566,7 @@ impl Context {
|
|||
tv_cache: None,
|
||||
patches: Dict::default(),
|
||||
higher_order_caller: vec![],
|
||||
erg_to_py_names: Dict::default(),
|
||||
level,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue