mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
fix: sub-unification bugs
This commit is contained in:
parent
b318395a32
commit
0079aed860
10 changed files with 190 additions and 153 deletions
|
@ -224,7 +224,7 @@ impl Context {
|
|||
Ok(tp)
|
||||
} else if let Some(t) = tmp_tv_cache.get_tyvar(&name) {
|
||||
let t = t.clone();
|
||||
if let Type::FreeVar(fv) = &t {
|
||||
if let Some(fv) = t.as_free() {
|
||||
if fv
|
||||
.constraint()
|
||||
.map(|cons| cons.is_uninited())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue