Skip to content

Commit

Permalink
Fix: wrong assumption being drop in multiple-value-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
davazp committed Jun 27, 2019
1 parent 9e84ff5 commit 0b439fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/delisp-core/src/infer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,10 @@ function infer(
})
],

assumptions: body.assumptions.filter(
a => !variableNames.includes(a.node.name)
)
assumptions: [
...form.assumptions,
...body.assumptions.filter(a => !variableNames.includes(a.node.name))
]
};
}
}
Expand Down

0 comments on commit 0b439fc

Please sign in to comment.