mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
fix: add a field meta_t
to TypeObj::Builtin
This commit is contained in:
parent
fd0f56579a
commit
0d8e574414
15 changed files with 258 additions and 142 deletions
|
@ -308,23 +308,23 @@ impl Context {
|
|||
self.register_builtin_type(mono(NEG), neg, vis, Const, None);
|
||||
self.register_const_param_defaults(
|
||||
ADD,
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_t(Slf.clone()))],
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_type(Slf.clone()))],
|
||||
);
|
||||
self.register_const_param_defaults(
|
||||
SUB,
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_t(Slf.clone()))],
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_type(Slf.clone()))],
|
||||
);
|
||||
self.register_const_param_defaults(
|
||||
MUL,
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_t(Slf.clone()))],
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_type(Slf.clone()))],
|
||||
);
|
||||
self.register_const_param_defaults(
|
||||
DIV,
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_t(Slf.clone()))],
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_type(Slf.clone()))],
|
||||
);
|
||||
self.register_const_param_defaults(
|
||||
FLOOR_DIV,
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_t(Slf))],
|
||||
vec![ConstTemplate::Obj(ValueObj::builtin_type(Slf))],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue