fix: failure of the type inference of another module

This commit is contained in:
Shunsuke Shibayama 2023-02-22 11:55:02 +09:00
parent aa2cea60dd
commit 5c4c43ab2f
8 changed files with 119 additions and 59 deletions

View file

@ -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());