Files
kotlin-fork/j2k/testData/fileOrElement/enum/constantsWithBody2.kt
T
2015-06-23 15:59:29 +03:00

18 lines
314 B
Kotlin
Vendored

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