mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: add __call__
for builtin classes
This commit is contained in:
parent
4ff0b64fc3
commit
3940f7f36c
3 changed files with 41 additions and 0 deletions
|
@ -2,6 +2,11 @@ use std::convert::TryInto;
|
|||
|
||||
use crate::ty::*;
|
||||
|
||||
#[inline]
|
||||
pub fn pos(ty: Type) -> ParamTy {
|
||||
ParamTy::Pos(ty)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn kw(name: &'static str, ty: Type) -> ParamTy {
|
||||
ParamTy::kw(Str::ever(name), ty)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue