Skip to content

PolyFunction implementation restriction on Function subclasses #15696

Open
@Adam-Vandervorst

Description

@Adam-Vandervorst

Compiler version

3.2.0-RC1

Minimized code

val poly_func: [X] => Int => Seq[X] = ???
val poly_pfunc: [X] => PartialFunction[Int, Seq[X]] = ???

Output

Implementation restriction: polymorphic function types must have a value parameter

Expectation

Polymorphic function types to include subclasses of Function, in case this was a small oversight.
Else, I guess this is a feature request.

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