Fix: alias decls cannot be made in py_compatible mode

This commit is contained in:
Shunsuke Shibayama 2023-03-12 01:14:52 +09:00
parent 40a1764dd1
commit 4bfc2f4876
2 changed files with 37 additions and 9 deletions

View file

@ -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,
}
}