mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
chore: add Subroutine
& GenericCallable
is now a trait
This commit is contained in:
parent
53172d5132
commit
58514c5890
7 changed files with 47 additions and 19 deletions
|
@ -1529,7 +1529,7 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
|
|||
) => {
|
||||
self.nominal_sub_unify(maybe_sub, maybe_sup, sup_params)?;
|
||||
}
|
||||
(Subr(_), Mono(name)) if &name[..] == "GenericCallable" => {}
|
||||
(Subr(_), Mono(name)) if &name[..] == "Subroutine" => {}
|
||||
_ => {
|
||||
return type_feature_error!(
|
||||
self.ctx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue