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