New issue
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
case class copy method should not be currying - Scala 2.10.0-M4 #5907
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5907?orig=1 |
@lrytz said: |
@paulp said: scala> case class Foo[T: Ordering](x: T)
defined class Foo
scala> Foo(5)
res0: Foo[Int] = Foo(5)
scala> res0.copy(x = 10)
res1: Ordering[Int] => Foo[Int] = <function1> |
@adriaanm said: |
@paulp said (edited on Jun 15, 2012 10:28:49 PM UTC):
|
@lrytz said: |
Ryan Hendrickson (ryan.hendrickson_bwater) said (edited on Jun 30, 2012 12:38:17 AM UTC): case class Sad(i: Int)(j: Int)
Sad(0)(0).copy()() In 2.9, this yielded another Sad(0)(0). In 2.10.0-M4, it's |
@paulp said: |
@paulp said:
|
Ryan Hendrickson (ryan.hendrickson_bwater) said: |
@lrytz said: |
I believe the following code is wrong:
res2 should be a new instance of
C
The text was updated successfully, but these errors were encountered: