Skip to content

No parameter untupling for named tuples #23440

Open
@dos65

Description

@dos65

3.7.1

Minimized code

The followign code produces an error

//>using scala 3.7.1

val x = List((a = 42, b = "asdads")).foreach((a, b) => println(s"$a $b"))
[error] Wrong number of parameters, expected: 1
[error] val x = List((a = 42, b = "asdads")).foreach((a, b) => println(s"$a $b"))
[error]                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expectation

This syntax works as it works for for ordinal tuples. Example:

//>using scala 3.7.1

val x = List((42, "asdads")).foreach((a, b) => println(s"$a $b"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    itype:bugstat:needs triageEvery issue needs to have an "area" and "itype" label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions