diff --git a/schala-lang/src/reduced_ast.rs b/schala-lang/src/reduced_ast.rs index 6c322bd..74853b2 100644 --- a/schala-lang/src/reduced_ast.rs +++ b/schala-lang/src/reduced_ast.rs @@ -48,7 +48,7 @@ pub enum Expr { then_clause: Vec, else_clause: Vec, }, - Match { + CaseMatch { cond: Box, alternatives: Vec }, @@ -182,7 +182,7 @@ fn reduce_if_expression(discriminator: &Discriminator, body: &IfExpressionBody, }, ]; - Expr::Match { + Expr::CaseMatch { cond, alternatives, }