Files
kotlin-fork/idea/testData/quickfix/makeConstructorParameterProperty/override.kt
T
2016-07-29 20:11:27 +03:00

10 lines
258 B
Kotlin
Vendored

// "Make constructor parameter a property" "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>
}
}