mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-31 15:48:23 +00:00
chore: fix minor bugs
This commit is contained in:
parent
c8f71d78f9
commit
0b0badfef4
4 changed files with 30 additions and 21 deletions
|
@ -4424,6 +4424,17 @@ impl Expr {
|
|||
Self::Call(self.call(args))
|
||||
}
|
||||
|
||||
pub fn call1(self, expr: Expr) -> Self {
|
||||
self.call_expr(Args::pos_only(vec![PosArg::new(expr)], None))
|
||||
}
|
||||
|
||||
pub fn call2(self, expr1: Expr, expr2: Expr) -> Self {
|
||||
self.call_expr(Args::pos_only(
|
||||
vec![PosArg::new(expr1), PosArg::new(expr2)],
|
||||
None,
|
||||
))
|
||||
}
|
||||
|
||||
pub fn type_asc(self, t_spec: TypeSpecWithOp) -> TypeAscription {
|
||||
TypeAscription::new(self, t_spec)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue