mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Update tyvar.rs
This commit is contained in:
parent
bddfef5cc9
commit
824f85e18c
1 changed files with 1 additions and 1 deletions
|
@ -1001,7 +1001,7 @@ impl Context {
|
|||
erg_common::log!(info "trying sub_unify:\nmaybe_sub: {maybe_sub}\nmaybe_sup: {maybe_sup}");
|
||||
// In this case, there is no new information to be gained
|
||||
// この場合、特に新しく得られる情報はない
|
||||
if maybe_sub == &Type::Never || maybe_sup == &Type::Obj {
|
||||
if maybe_sub == &Type::Never || maybe_sup == &Type::Obj || maybe_sup == maybe_sub {
|
||||
return Ok(());
|
||||
}
|
||||
let maybe_sub_is_sub = self.rec_subtype_of(maybe_sub, maybe_sup);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue