We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
3.0.0-RC3
import scala.reflect.Typeable def unionTypeTest[T: Typeable](m: Int|T) = m match case x: Int => println("Got Int") case t: T => println("Got T") @main def run = unionTypeTest(())
match may not be exhaustive. It would fail on pattern case: _: T
No warnings since the union type match pattern is exhaustive.
The text was updated successfully, but these errors were encountered:
Fix scala#12279: Add test
0ba1238
Merge pull request #12282 from dotty-staging/fix-12279
bdca541
Fix #12279: Add test
47eea0c
liufengyun
Successfully merging a pull request may close this issue.
Compiler version
3.0.0-RC3
Minimized code
Output
Expectation
No warnings since the union type match pattern is exhaustive.
The text was updated successfully, but these errors were encountered: