xo-expression: refactor: Lambda/Primitive share FunctionInterface

This commit is contained in:
Roland Conybeare 2024-06-19 10:53:04 -04:00
commit 5c4b062cf8
6 changed files with 63 additions and 22 deletions

View file

@ -49,7 +49,7 @@ namespace xo {
TypeDescr lambda_type,
const std::vector<rp<Variable>> & argv,
const ref::rp<Expression> & body)
: Expression(exprtype::lambda, lambda_type),
: FunctionInterface(exprtype::lambda, lambda_type),
name_{name},
argv_{argv},
body_{body}