mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
fix: failure of the type inference of another module
This commit is contained in:
parent
aa2cea60dd
commit
5c4c43ab2f
8 changed files with 119 additions and 59 deletions
|
@ -676,7 +676,7 @@ impl Context {
|
|||
muty: Mutability,
|
||||
py_name: Option<&'static str>,
|
||||
) {
|
||||
if self.rec_get_mono_type(&t.local_name()).is_some() {
|
||||
if self.rec_local_get_mono_type(&t.local_name()).is_some() {
|
||||
panic!("{} has already been registered", t.local_name());
|
||||
} else if self.rec_get_const_obj(&t.local_name()).is_some() {
|
||||
panic!("{} has already been registered as const", t.local_name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue