Files
kotlin-fork/j2k/testData/fileOrElement/enum/constantsWithBody2.kt
T
2015-09-18 15:44:18 +03:00

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()
}