mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
fix: mutable array type bug
This commit is contained in:
parent
157ed4549e
commit
5e580422c3
3 changed files with 13 additions and 1 deletions
|
@ -2493,7 +2493,7 @@ impl Context {
|
|||
/* Array! */
|
||||
let array_mut_t = poly(MUT_ARRAY, vec![ty_tp(T.clone()), N.clone()]);
|
||||
let mut array_mut_ =
|
||||
Self::builtin_poly_class(MUT_ARRAY, vec![PS::t_nd(TY_T), PS::named_nd(TY_N, Nat)], 2);
|
||||
Self::builtin_poly_class(MUT_ARRAY, vec![PS::t_nd(TY_T), PS::default(TY_N, Nat)], 2);
|
||||
array_mut_.register_superclass(arr_t.clone(), &array_);
|
||||
let t = pr_met(
|
||||
ref_mut(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue