-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: type checking of two union types (#949)
### Summary of Changes The quantifiers were in the wrong order when checking whether two union types were subtypes of each other: Previously, `isSubtypeOf` only returned `true`, if **there was** one entry of `other` that was a supertype **of all** entries of `type`. Now, it returns `true` if **for all** entries of `type` **there is** one entry of `other` that is a supertype.
- Loading branch information
1 parent
ce01628
commit 21fc485
Showing
2 changed files
with
25 additions
and
9 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