Skip to content

FunctionN tupled should return (ProductN) => T not (TupleN) =>T #8986

@scabug

Description

@scabug
scala> import scala.language.postfixOps
import scala.language.postfixOps

scala> case class Foo (i:Int, j:Int)
defined class Foo

scala> Foo.apply _ tupled
res2: ((Int, Int)) => Foo = <function1>

I would expect that res2's type is (Product2) => Foo

I'm happy to produce a patch assuming it's agreed that this behaviour is incorrect.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions