Skip to content

@ or : for varargs patterns? #253

Closed
Closed
@samuelgruetter

Description

@samuelgruetter

Scala 2 only accepts varargs patterns with @:

case List(1, 2, xs @ _*) =>

whereas dotty only accepts varargs patterns with : (see PR #168):

case List(1, 2, xs : _*) =>

So I wonder if this breaking change was intentional? If yes, I'll add this to the rewriting tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions