mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
feat: add IrregularEq
This commit is contained in:
parent
3eec9ed590
commit
b7d9598d28
10 changed files with 71 additions and 2 deletions
|
@ -1065,6 +1065,25 @@ impl Context {
|
|||
)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn builtin_patch<S: Into<Str>>(
|
||||
name: S,
|
||||
impls: Type,
|
||||
params: Vec<ParamSpec>,
|
||||
capacity: usize,
|
||||
) -> Self {
|
||||
Self::poly(
|
||||
name.into(),
|
||||
ErgConfig::default(),
|
||||
ContextKind::Patch(impls),
|
||||
params,
|
||||
None,
|
||||
None,
|
||||
capacity,
|
||||
Self::TOP_LEVEL,
|
||||
)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn module(
|
||||
name: Str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue