mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 11:59:05 +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)) => {
|
||||
if is_method {
|
||||
errs.extend(es);
|
||||
}
|
||||
obj
|
||||
}
|
||||
};
|
||||
|
|
|
@ -16,3 +16,8 @@ _, _ = f2, g2
|
|||
Packages = [{ .name = Str; .version = Str }; _]
|
||||
_: Packages = [{ .name = "a"; .version = "1.0.0" }]
|
||||
_: Packages = [{ .name = "a"; .version = "1.0.0" }, { .name = "b"; .version = "1.0.0" }]
|
||||
|
||||
C = Class {
|
||||
.foo = global::List(Int)
|
||||
}
|
||||
_ = C.new { .foo = [] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue