Skip to content

_ => _ should be a valid way to write Function1[_, _] #1396

@smarter

Description

@smarter

This works in scalac but not in dotty:

val x: _ => _ = (x: Int) => 1
val y: (_ <: Int) => _ = (x: Int) => 1

Real-world usage: https://github.com/functional-streams-for-scala/fs2/blob/series/0.9/core/src/main/scala/fs2/Chunk.scala#L321

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