fix: mutable array type bug

This commit is contained in:
Shunsuke Shibayama 2023-10-11 21:29:53 +09:00
parent 157ed4549e
commit 5e580422c3
3 changed files with 13 additions and 1 deletions

View file

@ -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(