d0f0b9e355
For internal members new names are generated, So, references to them from Java will be broken
15 lines
285 B
Kotlin
Vendored
15 lines
285 B
Kotlin
Vendored
// ERROR: Cannot access 'p': it is invisible (private in a supertype) in 'A'
|
|
enum class E(private val p: Int) {
|
|
A(1) {
|
|
override fun bar() {
|
|
foo(p)
|
|
}
|
|
},
|
|
B(2) {
|
|
override fun bar() {}
|
|
};
|
|
|
|
fun foo(p: Int) {}
|
|
abstract fun bar()
|
|
|
|
} |