Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/privateSetter.kt
T
2021-10-03 17:10:06 +03:00

18 lines
267 B
Kotlin
Vendored

// FIR_IDENTICAL
open class X(s : String) {
public var n: String = s
private set
}
class Z : X("subclass") {
fun print(): String {
<!INVISIBLE_SETTER!>n<!> = n
return n;
}
}
fun box() : String {
return Z().print() //error
}