diff --git a/compiler/cl-parser/src/parser.rs b/compiler/cl-parser/src/parser.rs index 440b02d..9b6e77f 100644 --- a/compiler/cl-parser/src/parser.rs +++ b/compiler/cl-parser/src/parser.rs @@ -1097,7 +1097,7 @@ impl Parse<'_> for Match { /// [Match] = `match` [Expr] `{` [MatchArm],* `}` fn parse(p: &mut Parser<'_>) -> PResult { p.match_type(TokenKind::Match, Parsing::Match)?; - let scrutinee = Expr::parse(p)?.into(); + let scrutinee = condition(p)?.into(); let arms = delim( sep(MatchArm::parse, TokenKind::Comma, CURLIES.1, Parsing::Match), CURLIES,