diff --git a/src/backend/serialize.rs b/src/backend/serialize.rs index caad0d2..f9ba11e 100644 --- a/src/backend/serialize.rs +++ b/src/backend/serialize.rs @@ -270,6 +270,7 @@ impl<'a> SerializedBodyContext<'a> { let if_true = iter.next().unwrap(); let if_false = iter.next().unwrap(); let mut rev_ops = vec![]; + let cond = self.f.resolve_alias(cond); self.push_value(cond, &mut rev_ops); rev_ops.reverse(); self.operators.extend(rev_ops); @@ -281,6 +282,7 @@ impl<'a> SerializedBodyContext<'a> { let default = iter.next().unwrap(); let targets = iter.collect::>(); let mut rev_ops = vec![]; + let value = self.f.resolve_alias(value); self.push_value(value, &mut rev_ops); rev_ops.reverse(); self.operators.extend(rev_ops);