diff --git a/src/schala_lang/typechecking.rs b/src/schala_lang/typechecking.rs index df78034..4b72884 100644 --- a/src/schala_lang/typechecking.rs +++ b/src/schala_lang/typechecking.rs @@ -224,8 +224,14 @@ impl TypeContext { } Ok(tf) }, + &TupleLiteral(ref expressions) => { + let mut types = vec![]; + for expr in expressions { + types.push(self.infer(expr)?); + } + Ok(Sum(types)) + }, /* - TupleLiteral(Vec), Index { indexee: Box, indexers: Vec,