mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
chore: add Self
substitution
This commit is contained in:
parent
8323dd4094
commit
927de74eee
5 changed files with 35 additions and 3 deletions
|
@ -288,6 +288,7 @@ impl Context {
|
|||
None
|
||||
};
|
||||
for rhs_sup in get_types(ty_ctx) {
|
||||
let _subs = Substituter::substitute_self(rhs_sup, rhs, self);
|
||||
// Not `supertype_of` (only structures are compared)
|
||||
match Self::cheap_supertype_of(lhs, rhs_sup) {
|
||||
(Absolutely, true) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue