mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: infinite recursion bug
add `Immutable` trait (Type: !Immutable)
This commit is contained in:
parent
de92e295dc
commit
f9eb562848
26 changed files with 415 additions and 163 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue