Closed scabug closed 13 years ago
Imported From: https://issues.scala-lang.org/browse/SI-3278?orig=1 Reporter: Zach DeVito (zdevito)
@ijuma said: It's worth linking directly to paulp's branch with a potential fix:
@dubochet said: Paul, I assign this bug to you so that you can apply your fix when you are ready.
@paulp said: (In r21635) Fixed bug in update method visibility which caused x += y not to find x's update method when defined generically. Closes #3278. Already reviewed by odersky.
The following code produces a compiler error for the a(f) += 1 syntax sugar. Removing the parameterization of update and apply makes the compiler error go away.
More discussion on the scala-user's mailing list [http://comments.gmane.org/gmane.comp.lang.scala.user/25484]