Skip to content

Can't unapply case class with 3 parameter lists #10533

Closed
scala/scala
#7060
@nicolasstucki

Description

@nicolasstucki

The following code crashes the compiler.

object Foo {
  val b @ Bar(_) = Bar(1)(2)(3)
}

case class Bar(a: Int)(b: Int)(c: Int)

https://scastie.scala-lang.org/wfwtO3ubTumKY1b9VD9N2A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions