mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: failure of the type inference of another module
This commit is contained in:
parent
aa2cea60dd
commit
5c4c43ab2f
8 changed files with 119 additions and 59 deletions
|
@ -1145,7 +1145,7 @@ impl Context {
|
|||
// obj: [T; N]|<: Add([T; M])|.Output == ValueObj::Type(<type [T; M+N]>)
|
||||
if let ValueObj::Type(quant_projected_t) = obj {
|
||||
let projected_t = quant_projected_t.into_typ();
|
||||
let (quant_sub, _) = self.rec_get_type(&sub.local_name()).unwrap();
|
||||
let (quant_sub, _) = self.get_type(&sub.qual_name()).unwrap();
|
||||
if let Some(sup) = opt_sup {
|
||||
if let Some(quant_sup) = methods.impl_of() {
|
||||
// T -> Int, M -> 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue