-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
function/stdlib: Fix setproduct bug with unknowns
If an argument to setproduct is a set with unknown values, its length is unknown, as the unknown values may be duplicates of others in the set. This should result in returning an unknown value propagating all marks. Previously this crashed due to a misuse of `.Mark(marks)` instead of `.WithMarks(marks)`. This commit also fixes an issue with the previous logic, which would shortcut return and omit marks from any arguments after the set with unknown length. Also includes a couple of tests for setproduct that were in my local working copy for some reason.
- Loading branch information
1 parent
4e5310f
commit 7ef3c08
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters