From 5d90105963de5ad7e491df2bf1a4a54b17c039ad Mon Sep 17 00:00:00 2001 From: Rigidity Date: Sat, 3 Aug 2024 23:26:18 -0400 Subject: [PATCH] Fix or --- crates/rue-compiler/src/compiler/expr/binary_expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rue-compiler/src/compiler/expr/binary_expr.rs b/crates/rue-compiler/src/compiler/expr/binary_expr.rs index 281ce65..1f31aab 100644 --- a/crates/rue-compiler/src/compiler/expr/binary_expr.rs +++ b/crates/rue-compiler/src/compiler/expr/binary_expr.rs @@ -282,7 +282,7 @@ impl Compiler<'_> { } fn op_or(&mut self, lhs: &Value, rhs: Option<&Expr>, text_range: TextRange) -> Value { - let overrides = self.build_overrides(lhs.then_guards()); + let overrides = self.build_overrides(lhs.else_guards()); self.type_overrides.push(overrides); let rhs = rhs