Skip to content

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

@julienrf

Description

@julienrf

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(_)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions