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
As in the title:
scala> def m(s: Int | Float | String) = s match { case _: Int => ; case _: Float => ; case _: String => ; } def m(s: Int | Float | String): Unit scala> type OrAlias = Int | Float defined type alias OrAlias scala> def m(s: OrAlias | String) = s match { case _: Int => ; case _: Float => ; case _: String => ; } -- [E028] Pattern Match Exhaustivity Warning: <console> ------------------------ 5 |def m(s: OrAlias | String) = s match { | ^ | match may not be exhaustive. | | It would fail on: _: OrAlias 6 | case _: Int => ; case _: Float => ; case _: String => ; } def m(s: OrAlias | String): Unit
The text was updated successfully, but these errors were encountered:
fix scala#2254: dealias types in decomposition of spaces
15e8d83
Thanks a lot @AleksanderBG , very good findings. I just pushed two fixes, I hope they are correct :)
Sorry, something went wrong.
Merge pull request #2256 from dotty-staging/fix-2254
de6461a
fix #2254: dealias types in decomposition of spaces
liufengyun
No branches or pull requests
As in the title:
The text was updated successfully, but these errors were encountered: