mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: sub unification bug
This commit is contained in:
parent
5f652f3dd5
commit
67a9f88f61
3 changed files with 14 additions and 9 deletions
|
@ -2438,7 +2438,7 @@ impl Context {
|
|||
}
|
||||
}
|
||||
|
||||
fn detach_tp(&self, tp: TyParam, tv_cache: &mut TyVarCache) -> TyParam {
|
||||
pub(crate) fn detach_tp(&self, tp: TyParam, tv_cache: &mut TyVarCache) -> TyParam {
|
||||
match tp {
|
||||
TyParam::FreeVar(fv) if fv.is_linked() => {
|
||||
let tp = fv.crack().clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue