-
Notifications
You must be signed in to change notification settings - Fork 131
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
Incorrect match inexhaustive warnings of NoSuccess
result.
#377
Comments
Will it actually fail the binary compatibility check? Why can't we refine the return type from |
@joroKr21 It can be compiled, but failed test.
I guess it's because |
Ah no I think the problem is the change of the parameter from |
Note that we aim to release 1.2.0 not too long after Scala 3.0.0 final comes out, so time is starting to run a bit short if anyone wants to submit a binary incompatible change. |
Are you saying that's an option? |
The 1.2.x series is still in RCs, so sure. |
In scala 2.13.5, the match expression will raise inexhaustive warning for following code
It looks like it's a problem here
scala-parser-combinators/shared/src/main/scala/scala/util/parsing/combinator/Parsers.scala
Lines 181 to 187 in 0cb7184
An alternative fix is change it to
And then may also need to revert commit c1fbc3c
But it will fail binary compatibility check.
see also: scala/bug#12384
The text was updated successfully, but these errors were encountered: