Skip to content

Old syntax is used in warning about vararg splice in pattern position #11502

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

Closed
julienrf opened this issue Feb 22, 2021 · 0 comments · Fixed by #11503
Closed

Old syntax is used in warning about vararg splice in pattern position #11502

julienrf opened this issue Feb 22, 2021 · 0 comments · Fixed by #11503

Comments

@julienrf
Copy link
Contributor

Compiler version

3.0.0-RC1

Minimized code

List(1, 2, 3) match
    case x :: y :: Nil => ()
    case Nil => ()

Output

match may not be exhaustive.

It would fail on pattern case: List(_, _, _, _: _*), List(_)

Expectation

Warning should be the following?

match may not be exhaustive.

It would fail on pattern case: List(_, _, _, _ *), List(_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants