fix: infinite recursion bug

add `Immutable` trait (Type: !Immutable)
This commit is contained in:
Shunsuke Shibayama 2024-09-04 20:38:46 +09:00
parent de92e295dc
commit f9eb562848
26 changed files with 415 additions and 163 deletions

View file

@ -443,6 +443,6 @@ impl SharedGeneralizationCache {
}
pub fn get(&self, key: &FreeTyVar) -> Option<GeneralizationResult> {
self.0.borrow().get(key).cloned()
self.0.borrow().linear_get(key).cloned()
}
}