Skip to content

Support Scala 3 vararg splice syntax under -Xsource:3#9584

Merged
lrytz merged 1 commit intoscala:2.13.xfrom
smarter:scala3-varargs
Apr 21, 2021
Merged

Support Scala 3 vararg splice syntax under -Xsource:3#9584
lrytz merged 1 commit intoscala:2.13.xfrom
smarter:scala3-varargs

Conversation

@smarter
Copy link
Member

@smarter smarter commented Apr 20, 2021

Instead of:

foo(s: _*)

One can now write:

foo(s*)

And instead of:

case Seq(elems @ _*) =>

One can now write:

case Seq(elems*) =>

See https://dotty.epfl.ch/docs/reference/changed-features/vararg-splices.html
for details.

Instead of:

    foo(s: _*)

One can now write:

    foo(s*)

And instead of:

    case Seq(elems @ _*) =>

One can now write:

    case Seq(elems*) =>

See https://dotty.epfl.ch/docs/reference/changed-features/vararg-splices.html
for details.
@scala-jenkins scala-jenkins added this to the 2.13.6 milestone Apr 20, 2021
@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes worth highlighting in next release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants