Files
kotlin-fork/idea/testData/quickfix/makeConstructorParameterProperty/override.kt
T
Valentin Kipyatkov 7625672914 Better test data
2016-09-23 10:07:15 +03:00

10 lines
297 B
Kotlin
Vendored

// "class org.jetbrains.kotlin.idea.quickfix.MakeConstructorParameterPropertyFix" "false"
// ERROR: Cannot access 'foo': it is invisible (private in a supertype) in 'A'
open class Base(private val foo: String)
class A(foo: String) : Base(foo) {
fun bar() {
val a = foo<caret>
}
}