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
|
@ -40,7 +40,7 @@ impl Context {
|
|||
interval_add.register_builtin_const(
|
||||
"Output",
|
||||
Visibility::BUILTIN_PUBLIC,
|
||||
ValueObj::builtin_t(Type::from(m.clone() + o.clone()..=n.clone() + p.clone())),
|
||||
ValueObj::builtin_class(Type::from(m.clone() + o.clone()..=n.clone() + p.clone())),
|
||||
);
|
||||
interval.register_trait(class.clone(), interval_add);
|
||||
let mut interval_sub =
|
||||
|
@ -55,7 +55,7 @@ impl Context {
|
|||
interval_sub.register_builtin_const(
|
||||
"Output",
|
||||
Visibility::BUILTIN_PUBLIC,
|
||||
ValueObj::builtin_t(Type::from(m - p..=n - o)),
|
||||
ValueObj::builtin_class(Type::from(m - p..=n - o)),
|
||||
);
|
||||
interval.register_trait(class, interval_sub);
|
||||
self.register_builtin_patch("Interval", interval, Visibility::BUILTIN_PRIVATE, Const);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue