Skip to content

Commit

Permalink
fix non-optional instance checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Dec 30, 2023
1 parent 71a5046 commit 368fd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zap/src/irgen/des.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ impl Des {

if self.checks && class.is_some() {
self.push_assert(
into_expr.clone().eq(Expr::Nil).or(Expr::Call(
Expr::Call(
Box::new(into),
Some("IsA".into()),
vec![Expr::Str(class.unwrap().into())],
)),
),
None,
)
}
Expand Down

0 comments on commit 368fd17

Please sign in to comment.