-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various improvements to
POSet
(#3834)
This PR makes various changes to `POSet` which were necessary during the development of the new type inference algorithm: - Change Java wrappers to use `Collections.mutable`/`Collections.immutable` rather than `asScala`/`asJava` to avoid an issue where the returned Java `Set` is not mutable - Add `minimalElements` and `maximalElements` methods - Optimize the `upperBounds` computation to iterate over the provided `sorts` rather than filtering keys from the `relations` map Co-authored-by: rv-jenkins <[email protected]>
- Loading branch information
1 parent
5c76463
commit 17f2c27
Showing
3 changed files
with
30 additions
and
29 deletions.
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
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