add function type annotation (Input1 -> Output1, Input2 -> Output2)

This commit is contained in:
Mark
2024-02-15 10:55:13 +01:00
parent c130678caf
commit 6d6853cc9f
7 changed files with 129 additions and 28 deletions

View File

@@ -39,7 +39,7 @@ impl MersStatement for Chain {
.as_any()
.downcast_ref::<crate::data::function::FunctionT>()
{
match (func.0)(&arg) {
match func.o(&arg) {
Ok(t) => o.add(Arc::new(t)),
Err(e) => {
return Err(if let Some(_) = &self.as_part_of_include {