Skip to content

unapplySeq does not support name-based extractors #581

Closed
@smarter

Description

@smarter

This is supported in scalac, see tests/pending/run/value-class-extractor-seq.scala.
If you replace the isEmpty method by an isDefined method in ArrayOpt, then compilation fails with:

tests/pending/run/value-class-extractor-seq.scala:46: error: ArrayOpt[Int] is not a valid result type of an unapply method of an extractor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions