chore: add Subroutine & GenericCallable is now a trait

This commit is contained in:
Shunsuke Shibayama 2024-02-07 13:23:09 +09:00
parent 53172d5132
commit 58514c5890
7 changed files with 47 additions and 19 deletions

View file

@ -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,