mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: type instantiation bug
This commit is contained in:
parent
7c75ba0044
commit
dfb2e43345
2 changed files with 8 additions and 1 deletions
|
@ -792,7 +792,9 @@ impl Context {
|
|||
let obj = match res_obj {
|
||||
Ok(obj) => obj,
|
||||
Err((obj, es)) => {
|
||||
errs.extend(es);
|
||||
if is_method {
|
||||
errs.extend(es);
|
||||
}
|
||||
obj
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue