diff --git a/schala-lang/language/src/ast/visitor.rs b/schala-lang/language/src/ast/visitor.rs index 6a0c19c..0d10ccc 100644 --- a/schala-lang/language/src/ast/visitor.rs +++ b/schala-lang/language/src/ast/visitor.rs @@ -46,7 +46,7 @@ pub enum VisitorOutput { Err(E) } -pub trait ExpressionVisitor {//TODO maybe this should be an associated type? +pub trait ExpressionVisitor { type Output; fn type_anno(&mut self, _anno: &TypeIdentifier) -> Self::Output; fn nat_literal(&mut self, _value: &u64) -> Self::Output;