-
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.
feat: simplify union types containing type parameter types disregardi…
…ng entry order (#894) ### Summary of Changes Consider the `class C<T> where { T sub Any }`. Previously, the type `union<T, Any>` was simplified to `T`, while the type `union<Any, T>` was simplified to `Any`. Now the simplified type is `T` in both cases. We chose the type parameter type, since it can be narrower if it has a lower bound.
- Loading branch information
1 parent
79d611d
commit cf6e77e
Showing
9 changed files
with
259 additions
and
147 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
Oops, something went wrong.