Skip to content
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

Check exhaustivity of pattern matches with "if" guards and custom extractors (by default) and of unsealed types (by opt-in). #9140

Merged
merged 13 commits into from Oct 23, 2020
Merged
2 changes: 1 addition & 1 deletion src/library/scala/unchecked.scala
Expand Up @@ -15,7 +15,7 @@ package scala
/** An annotation to designate that the annotated entity
* should not be considered for additional compiler checks.
* Specific applications include annotating the subject of
* a match expression to suppress exhaustiveness warnings, and
* a match expression to suppress exhaustiveness and reachability warnings, and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old PR, but this doesn't seem to be the case in Scala 2? You also mention it in #9140 (comment).

* annotating a type argument in a match case to suppress
* unchecked warnings.
*
Expand Down