-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious exhaustivity warning on quote API + union types #12020
Labels
Milestone
Comments
Note: the reason I included two examples is because
|
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2021
Properly capture the semantics of `TypeTest` in the `Space` logic. `TypeTest[S, T].unapply` is equivalent to (and mostly used as) a `_: T` pattern and therefore cover all `T`. * Update the documentation to make this feature clearer * Fixes scala#12026 * Fixes scala#12020 * Improves scala#11541
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2021
Properly capture the semantics of `TypeTest` in the `Space` logic. `TypeTest[S, T].unapply` is equivalent to (and mostly used as) a `_: T` pattern and therefore covers all `T`. * Update the documentation to make this feature clearer * Fixes scala#12026 * Fixes scala#12020 * Improves scala#11541
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 9, 2021
Properly capture the semantics of `TypeTest` in the `Space` logic. `TypeTest[S, T].unapply` is equivalent to (and mostly used as) a `_: T` pattern and therefore covers all `T`. * Update the documentation to make this feature clearer * Fixes scala#12026 * Fixes scala#12020 * Improves scala#11541
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
Both:
Minimized code
Output
Expectation
No warnings.
The text was updated successfully, but these errors were encountered: