From 248bdf003aa991f4bad18ddcb084532d1bcb78d5 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Tue, 17 Dec 2024 19:10:56 +0100 Subject: [PATCH] making the else branch have less priority Signed-off-by: Jakub Doka --- lang/src/son.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/src/son.rs b/lang/src/son.rs index f467050..9c9417b 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -2137,7 +2137,7 @@ impl<'a> Codegen<'a> { } } - if let Some(body) = else_branch.or(matching_branch) { + if let Some(body) = matching_branch.or(else_branch) { self.expr(&body)?; } } else {