Skip to content

Commit

Permalink
Ignore optional fields when forcing
Browse files Browse the repository at this point in the history
  • Loading branch information
yannham committed Sep 12, 2022
1 parent 25e7ccb commit 8286782
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eval/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,8 @@ fn process_unary_operation(

let map = map
.into_iter()
// We ignore empty optional fields
.filter(|(_, t)| !is_empty_optional(t, &env))
.map(|(id, t)| {
let stack_elem = Some(callstack::StackElem::Field {
id: id.clone(),
Expand Down

0 comments on commit 8286782

Please sign in to comment.