mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
chore: add TyParam::proj_call
This commit is contained in:
parent
664f265716
commit
1ea2c74aaa
15 changed files with 408 additions and 191 deletions
|
@ -347,7 +347,7 @@ impl Context {
|
|||
Some(FUNDAMENTAL_EXIT),
|
||||
);
|
||||
/* Shape */
|
||||
let S = mono_q(TY_S, instanceof(unknown_len_array_t(Nat)));
|
||||
let S = mono_q_tp(TY_S, instanceof(unknown_len_array_t(Nat)));
|
||||
let params = vec![PS::named_nd("S", unknown_len_array_t(Nat))];
|
||||
let shape = Self::builtin_poly_trait(SHAPE, params.clone(), 2);
|
||||
/* Num */
|
||||
|
@ -545,7 +545,7 @@ impl Context {
|
|||
Const,
|
||||
None,
|
||||
);
|
||||
self.register_builtin_type(poly(SHAPE, vec![ty_tp(S)]), shape, vis.clone(), Const, None);
|
||||
self.register_builtin_type(poly(SHAPE, vec![S]), shape, vis.clone(), Const, None);
|
||||
self.register_builtin_type(poly(ADD, ty_params.clone()), add, vis.clone(), Const, None);
|
||||
self.register_builtin_type(poly(SUB, ty_params.clone()), sub, vis.clone(), Const, None);
|
||||
self.register_builtin_type(poly(MUL, ty_params.clone()), mul, vis.clone(), Const, None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue