conlang: Single-expression functions

This commit is contained in:
2025-02-20 21:59:42 -06:00
parent 3b14186b70
commit 772286eefa
7 changed files with 18 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ pub struct Function {
pub name: Sym,
pub sign: TyFn,
pub bind: Vec<Param>,
pub body: Option<Block>,
pub body: Option<Expr>,
}
/// A single parameter for a [Function]