18 lines
325 B
Kotlin
Vendored
18 lines
325 B
Kotlin
Vendored
// ERROR: Cannot access 'p': it is 'invisible_fake' in 'A'
|
|
enum class E private constructor(private val p: Int) {
|
|
A(1) {
|
|
override fun bar() {
|
|
foo(this.p)
|
|
}
|
|
},
|
|
|
|
B(2) {
|
|
override fun bar() {
|
|
}
|
|
};
|
|
|
|
internal fun foo(p: Int) {
|
|
}
|
|
|
|
internal abstract fun bar()
|
|
} |