Closed scabug closed 13 years ago
Imported From: https://issues.scala-lang.org/browse/SI-4036?orig=1 Reporter: Martin Gamwell Dawids (mgd)
@adriaanm said: this seems to be related to the default getter, as this compiles:
object Error {
def f {
case class X(b: Boolean)
val x = X(true)
}
}
@lrytz said: (In e1a0866ce7) close #4036, fix #2489. synthetic members (companion objects, default getters) are emitted next to their correspondant. review by extempore.
Compiling this code
with scalac 2.8.1.final yields:
This seems similar to ticket #2489, but this has been fixed and the code from that ticket compiles without errors.
Versions