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
private members create mixin order dependency #7699
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7699?orig=1 |
@paulp said:
|
@paulp said: package s {
object o {
trait A {
private[this] val m1 = 1
private val m2 = 2
private[A] val m3 = 3
private[o] val m4 = 4
private[s] val m5 = 5
}
// Here is what that produces:
// public abstract int s$o$A$$m1();
// public abstract int s$o$A$$m2();
// public abstract int s$o$A$$m3();
// public abstract int m4();
// public abstract int m5();
}
} |
Not only does it fail, but there is nothing which can be done in Y2 (e.g. overriding to resolve the ambiguity, even though neither m should even be inherited in Y2, let alone overridable) to make it compile. This is among the consequences of refusing to fix #2568.
The text was updated successfully, but these errors were encountered: