We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since Scala 2.10 currying functions with repeated parameters seems to change the repeated parameters into a Seq[] parameter.
Code: {quote}def doSomething(x: Int)(abc: Int*)(y: Int) = x + abc.sum * y def doLess = doSomething(0)_{quote}
Output with Scala 2.9.2: {quote}doSomething: (x: Int)(abc: Int*)(y: Int)Int doLess: Int* => (Int => Int){quote}
Output with Scala 2.10.0: {quote}doSomething: (x: Int)(abc: Int*)(y: Int)Int doLess: Seq[Int] => (Int => Int){quote}
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7144?orig=1 Reporter: Marvin (marvin) Affected Versions: 2.10.0, 2.10.1-RC1, 2.10.1
Sorry, something went wrong.
@adriaanm said: The old behavior was considered a bug. #4176 , fixed in scala/scala#771
No branches or pull requests
Since Scala 2.10 currying functions with repeated parameters seems to change the repeated parameters into a Seq[] parameter.
Code:
{quote}def doSomething(x: Int)(abc: Int*)(y: Int) = x + abc.sum * y
def doLess = doSomething(0)_{quote}
Output with Scala 2.9.2:
{quote}doSomething: (x: Int)(abc: Int*)(y: Int)Int
doLess: Int* => (Int => Int){quote}
Output with Scala 2.10.0:
{quote}doSomething: (x: Int)(abc: Int*)(y: Int)Int
doLess: Seq[Int] => (Int => Int){quote}
The text was updated successfully, but these errors were encountered: